-
Notifications
You must be signed in to change notification settings - Fork 546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pegasus documentation cannot produce valid javadoc with certain symbols #432
Comments
@jplaisted Hi, Would you mind give me some context? from the examples, are you saying the "> 5" is invalid for you? |
In the above I gave the PDL (which used
|
If you're unaware, Javadoc supports HTML tags. So characters like I suggest you don't "translate" any documentation here when generating javadoc. Just print it literally. Then PDL annotations can use javadoc syntax directly (so |
got it, I will investigate and get back here |
Well, looks like that is the intended design, in restli: @Test
public void testUnescapeDocstring()
{
String extracted = PdlParseUtils.extractMarkdown(
" /**\n" +
" * <div>Some html</div>\n" +
" * /* A comment */\n" +
" */\n");
assertEquals(extracted,
"<div>Some html</div>\n" +
"/* A comment */");
} The specific unescape is happening inside StringEscapeUtils.unescapeHtml4(commentUnescaped); I think if we change this it will affect a lot. I would like to discuss with our staffs to gain better decision making. |
We agreed that the current behavior isn't ideal, but there are other concerns about how this would affect current use cases. We're tracking this internally and we'll revisit this issue later once we have bandwidth. |
I created a ticket under my name! FYI |
It seems like Pegasus will do some parsing of documentation tags and spit out the "parsed" strings into the javadoc. This actually makes it invalid.
Example:
The text was updated successfully, but these errors were encountered: