man2hlp: remove escaping from dashes in section titles#5050
Conversation
Some 15 years ago, I did a mass-fixing of unescaped dashes in the manual pages, including section titles (8a692f9). Unfortunately, our man2hlp converter wasn't able to remove escaped dashes form the section titles. Now it can. Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
egmontkob
left a comment
There was a problem hiding this comment.
Just out of curiosity: what's the difference between - and \- in manpages?
https://man.openbsd.org/mandoc_char.7#Dashes_and_Hyphens In particular, Debian sticks to |
|
So I guess it's only imporant to use The But it's probably easier just to be consistent and use |
Yes, exactly, especially as distro linting tools do not differentiate between the two usages. |
Proposed changes
Some 15 years ago, I did a mass-fixing of unescaped dashes in the manual pages, including section titles (8a692f9). Unfortunately, our man2hlp converter wasn't able to remove escaped dashes form the section titles. Now it can.