Skip to content
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

Do not escape dash, underscore, and ampersand #74

Merged
merged 1 commit into from
Jul 13, 2021

Commits on Jul 13, 2021

  1. 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 <kolyshkin@gmail.com>
    kolyshkin committed Jul 13, 2021
    Configuration menu
    Copy the full SHA
    1c88e95 View commit details
    Browse the repository at this point in the history