Skip to content

Groff output breaks Lexgrog #254

@bensmrs

Description

@bensmrs

I’m packaging an app that uses Cmdliner for Debian, and generating the manpages by piping <command> --help=groff to my manpage files.
It works great, the manpages can properly be read, but the Debian package linter, lintian, uses lexgrog to parse the manpages for some metadata. However, lexgrog doesn’t like escape characters in the NAME section. Cmdliner is generating \N'45' for the regular dash - character, which breaks this tool (and thus quite a few Debian packaging tools). Would it be possible to generate \- instead? (or - within the text and \- for command-line options, but that one may be too tricky)

For now, I’m piping the output to sed "s/\\N'45'/\\-/g", but was hoping for a more “legacy” handling of dashes that works well with groff parsers. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions