man pages: replace all unescaped hyphen/minus characters with \-
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 14 Jun 2011 09:10:24 +0000 (10:10 +0100)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Thu, 28 Jul 2011 10:06:10 +0000 (11:06 +0100)
commit4335a092804ba376802ea6918cc56044e69a080b
treeb6695e1003bb3160e45d57fc139ad14029fd2bef
parent638828526a9e7e4ff790c8949c65f3ee80a2cc79
man pages: replace all unescaped hyphen/minus characters with \-

In a man page, "-" officially means a typographical (Unicode) hyphen,
which frequently breaks the ability to copy and paste code examples from
a man page. "\-" means the ASCII hyphen/minus character. See
<http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html> for
more details.

Rather than trying to distinguish between hyphens, em-dashes and
hyphen/minus, I just replaced all ambiguous hyphens with \- by applying
this vim command repeatedly until it didn't find anything:

     %s/\(^\|[^\\]\)-/\1\\-/g

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=38284
Reviewed-by: Lennart Poettering <lennart@poettering.net>
doc/dbus-cleanup-sockets.1
doc/dbus-daemon.1.in
doc/dbus-launch.1
doc/dbus-monitor.1
doc/dbus-send.1
doc/dbus-uuidgen.1