Don't put backslashes before the dashes in " -- ".
authorWayne Davison <wayned@samba.org>
Fri, 27 Oct 2006 17:51:21 +0000 (17:51 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 27 Oct 2006 17:51:21 +0000 (17:51 +0000)
tweak_manpage

index 1efac26102735fcff52154062a60970f54a956aa..a713d02b72cc398bcd4d46270b55a6b15ff47c1c 100755 (executable)
@@ -1,8 +1,7 @@
 #!/usr/bin/perl -i -p
 s{(--\w[-\w]+)}{ $x = $1; $x =~ s/-/\\-/g; $x }eg;
 s/(?<!\\)-(['"\d*])/\\-$1/g;
-s/ -- / \\-\\- /g;
-s#(['"(= /,])-#$1\\-#g;
+s#(['"(= /,])-(?!-)#$1\\-#g;
 s/(\\fB)-/$1\\-/g;
 s/(\[\w)-(\w\])/$1\\-$2/g;
 s{(\\f\(CW.*?\\fP)}{ $x = $1; $x =~ s/(?<!\\)-/\\-/g; $x }eg;