X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=ovsdb%2Fovsdb-doc.in;h=aa4fae2e6c26ac1d25246ddb407c5f05711b2fe4;hb=85b20fd6ee585f462e012fbcc7f966a81edab2ed;hp=a4eabc59a21a67c8ee767604f8a314c9e6bfc993;hpb=a03bd69a202d1da672dde4957b4bc4fc10e7cf09;p=sliver-openvswitch.git diff --git a/ovsdb/ovsdb-doc.in b/ovsdb/ovsdb-doc.in index a4eabc59a..aa4fae2e6 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: @@ -187,7 +188,8 @@ def columnGroupToNroff(table, groupXml): nameNroff = "%s : %s" % (name, key) if column.type.value: - 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 @@ -201,7 +203,8 @@ def columnGroupToNroff(table, groupXml): else: typeNroff += ", containing a %s" % type_english constraints = ( - type_.constraintsToEnglish(escapeNroffLiteral)) + type_.constraintsToEnglish(escapeNroffLiteral, + textToNroff)) if constraints: typeNroff += ", %s" % constraints else: @@ -262,7 +265,7 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None): # Putting '\" p as the first line tells "man" that the manpage # needs to be preprocessed by "pic". s = r''''\" p -.TH %s 5 "%s" "Open vSwitch" "Open vSwitch Manual" +.TH @VERSION@ 5 "%s" "Open vSwitch" "Open vSwitch Manual" .\" -*- nroff -*- .de TQ . br @@ -277,7 +280,8 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None): .. .SH NAME %s \- %s database schema -''' % (title, d.strftime("%B %Y"), textToNroff(title), schema.name) +.PP +''' % (title, textToNroff(title), schema.name) tables = "" introNodes = []