2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 14:25:26 +00:00

nroff: Fix the escape of '.'.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Alex Wang <alexw@nicira.com>
This commit is contained in:
Ben Pfaff
2015-06-23 11:06:01 -07:00
committed by Alex Wang
parent 31d2b7c027
commit 7102846b86

View 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")