GNOME Bugzilla – Bug 747780
man output should escape minus signs
Last modified: 2015-06-27 19:01:36 UTC
If I generate a man page for this (pure comment) common.h: /** * \file common.h * \brief return -1 */ the generated common.h.3 contains [...] common.h \- return -1 [...] The problem is that groff interprets plain '-' characters as hyphens, not minus signs, breaking search and copy&paste in the resulting man pages in UTF-8 locales (where these are represented as different characters). As Doxygen does not distinguish hyphens and minus signs, it should play safe by emitting only the latter, ie. inserting backslashes like it does with the separator above. Please see also http://doxygen.10944.n7.nabble.com/hyphen-used-as-minus-sign-td3908.html and the links therein.
I've just pushed a proposed patch to github (pull request 330)
Thanks, I've merged the pull request
This bug was previously marked ASSIGNED, which means it should be fixed in doxygen version 1.8.10. Please verify if this is indeed the case. Reopen the bug if you think it is not fixed and please include any additional information that you think can be relevant (preferably in the form of a self-contained example).