-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix HTML escaping after literals in non-code Javadoc (#1409)
When formatting Javadocs, we use a state machine to track what we should be escaping and when. In the case of non-code blocks, we generally HTML-escape all characters except `@`, which must be encoded using a Javadoc `{@literal @}` block. If we see a sequence of `@` characters, we enter a state where we try to print as many `@`s as possible before closing the `@literal` block. Unfortunately, there is a bug whereby when closing the literal block (because we have seen a non-`@` character), we do not HTML-escape the first character after it. This commit fixes this issue. Fixes #1408
- Loading branch information
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
### Improvements | ||
|
||
### Bug Fixes | ||
|
||
### Bug Fixes | ||
- Fix HTML escaping after `{@literal ...}` blocks in Javadocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters