nroff: Fix the escape of '.'.
authorBen Pfaff <blp@nicira.com>
Tue, 23 Jun 2015 18:06:01 +0000 (11:06 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 23 Jun 2015 18:06:51 +0000 (11:06 -0700)
Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
python/build/nroff.py

index 050518c..078ec4b 100644 (file)
@@ -47,7 +47,7 @@ def textToNroff(s, font=r'\fR'):
         elif c == ".":
             # groff(7) says that . can be escaped by \. but in practice groff
             # still gives an error with \. at the beginning of a line.
-            return font + "."
+            return r'\[char46]'
         else:
             raise error.Error("bad escape")