Don't put backslashes before the dashes in " -- ".
[rsync/rsync.git] / tweak_manpage
index 1efac26..a713d02 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;