-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not escape dash, underscore, and ampersand
Currently, we escape a few characters, such as - (dash) becomes \- (arithmetic minus sign) _ (underscore) becomes \_ (underline character) & (ampersand) becomes \& (zero-width space) As a result, we have two bugs: 1. All & characters disappear from the resulting man page. 2. Dashes are quite longer, and underscores becomes underlines (the latter are lower). This is not reflected in text output, only in PDF etc, and in most cases (like file names, command line options etc) does not look good. In fact, the only character that needs escaping is the backslash itself. This is what this patch does, together with fixes to expected test output. Signed-off-by: Kir Kolyshkin <[email protected]>
- Loading branch information
Showing
2 changed files
with
11 additions
and
20 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
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