summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2011-06-04 12:53:10 -0700
committerWayne Davison <wayned@samba.org>2011-06-04 12:53:22 -0700
commit365124a2144e7bebfe9857bbb070953cac9798b1 (patch)
treec63834355a455533745c5c2733e396b24461973a
parentdbf68ca4c11771f57a01040e805bcd5549110221 (diff)
downloadrsync-365124a2144e7bebfe9857bbb070953cac9798b1.tar.gz
Don't force \(em in the manpages. Fixes bug 7941.
-rwxr-xr-xtweak_manpage15
1 files changed, 3 insertions, 12 deletions
diff --git a/tweak_manpage b/tweak_manpage
index f10d2a05..4c55c514 100755
--- a/tweak_manpage
+++ b/tweak_manpage
@@ -1,19 +1,10 @@
#!/usr/bin/perl -i -p
-# Make some hyphens unbreakable.
-s{(--\w[-\w]+)}{ $x = $1; $x =~ s/-/\\-/g; $x }eg;
-s/(?<!\\)-(['"\d*])/\\-$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;
-s/(\.\w+)-/$1\\-/g;
+use strict;
+use warnings;
# We only need to use "\&'" or "\&." at the start of a line.
-s/(?<=.)\\\&(['.])/$1$2/g;
-
-# Use an em-dash where appropriate.
-s/ \\?-{1,2} / \\(em /g;
+s/(?<=.)\\\&(['.])/$1/g;
# Some quotes turn into open/close quotes.
s/'(.)'/\\(oq$1\\(cq/g;