diff options
author | Ben Pfaff <blp@nicira.com> | 2012-03-09 15:10:56 -0800 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2012-03-19 10:28:38 -0700 |
commit | 0c869d3808af7cd2e1500f40285d2dcc4773d28e (patch) | |
tree | 1781229ad298a35adec8238289b3a8e647227229 /ovsdb | |
parent | 5955764c2794cab79d97705f7a67beefd8a61d02 (diff) |
ovsdb-doc: Use minus sign in negative numbers in nroff output.
ovs-vswitchd.conf.db.5 has autogenerated text "at least -1" in one place.
This '-' should be a minus sign, but ovsdb-doc was generating it as a
hyphen.
Found by lintian.
Reported-by: Thomas Goirand <zigo@debian.org>
Reviewed-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'ovsdb')
-rwxr-xr-x | ovsdb/ovsdb-doc.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ovsdb/ovsdb-doc.in b/ovsdb/ovsdb-doc.in index 7d257c15..26fba3ec 100755 --- a/ovsdb/ovsdb-doc.in +++ b/ovsdb/ovsdb-doc.in @@ -144,7 +144,8 @@ def blockXmlToNroff(nodes, para='.PP'): def typeAndConstraintsToNroff(column): type = column.type.toEnglish(escapeNroffLiteral) - constraints = column.type.constraintsToEnglish(escapeNroffLiteral) + constraints = column.type.constraintsToEnglish(escapeNroffLiteral, + textToNroff) if constraints: type += ", " + constraints if column.unique: @@ -185,7 +186,8 @@ def columnGroupToNroff(table, groupXml): type_ = column.type.value nameNroff = "%s : %s" % (name, key) - typeNroff = "optional %s" % column.type.value.toEnglish() + typeNroff = "optional %s" % column.type.value.toEnglish( + escapeNroffLiteral) if (column.type.value.type == ovs.db.types.StringType and type_.type == ovs.db.types.BooleanType): # This is a little more explicit and helpful than @@ -193,7 +195,7 @@ def columnGroupToNroff(table, groupXml): typeNroff += r", either \fBtrue\fR or \fBfalse\fR" else: if type_.type != column.type.value.type: - type_english = type_.toEnglish() + type_english = type_.toEnglish(escapeNroffLiteral) if type_english[0] in 'aeiou': typeNroff += ", containing an %s" % type_english else: |