[PATCH] man: escape literal newlines
Christian Ebert
blacktrash at gmx.net
Sun Jan 25 19:37:24 CST 2009
# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1232933815 -3600
# Node ID 1f3de9153551851235e7be1f24ca56a880bb9958
# Parent fa584d23e3ccd14f8b325836675a4f88e1309676
man: escape literal newlines
Otherwise they appear as "0" in the manual.
diff --git a/doc/Makefile b/doc/Makefile
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -21,7 +21,7 @@
%: %.xml
xmlto man $*.xml ; \
- sed -e 's/^\.hg/\\\&.hg/' $* > $*~ ; \
+ sed -e 's/^\.hg/\\\&.hg/' -e 's/\\n/\\\\n/g' $* > $*~ ; \
mv $*~ $*
%.xml: %.txt
More information about the Mercurial-devel
mailing list