#628751 docbook2man generates man nroff documents with unescaped dashes

#628751#5
Date:
2011-06-01 01:51:38 UTC
From:
To:
How to reproduce: rebuild module-init-tools with
DOCBOOKTOMAN=docbook2man.

#628751#10
Date:
2014-08-10 11:17:20 UTC
From:
To:
Hi,

Please find attached the debdiff patch that should solve both #208967
and #628751.

In short:  Current version of docbook2man's hyphen rendering makes
lintian complain about "hyphen-used-as-minus-sign". This patch renders
`-' as `\-' and `\-' as `\\\-', so we should have a correct output and
lintian not complaining again.

This should solve a big amount of the current
"hyphen-used-as-minus-sign" reports.

I wrote it as an NMU but I'd rather have it uploaded and integrated by
official maintainers.

Tested on module-init-tools (the oldstable version which uses sgml)
and it seems fine to me.
Also tested on gnome-shell-pomodoro I am currently using sgml man
pages with and it also works great!

Best,
Joseph

#628751#15
Date:
2014-08-10 11:17:20 UTC
From:
To:
Hi,

Please find attached the debdiff patch that should solve both #208967
and #628751.

In short:  Current version of docbook2man's hyphen rendering makes
lintian complain about "hyphen-used-as-minus-sign". This patch renders
`-' as `\-' and `\-' as `\\\-', so we should have a correct output and
lintian not complaining again.

This should solve a big amount of the current
"hyphen-used-as-minus-sign" reports.

I wrote it as an NMU but I'd rather have it uploaded and integrated by
official maintainers.

Tested on module-init-tools (the oldstable version which uses sgml)
and it seems fine to me.
Also tested on gnome-shell-pomodoro I am currently using sgml man
pages with and it also works great!

Best,
Joseph