X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=ovsdb%2Fovsdb-doc.in;h=1c914144c460071d8ba2b3cef748a2f5a5948024;hb=7b6b0ef47e398a2fbda48fd385f9781b2df8bebb;hp=3c825d2a494c3db49e2f1ab09966061a6ecbf09e;hpb=d5a59e7e9ef3fdfc7dc7d4a80cbde6b524c5100b;p=openvswitch diff --git a/ovsdb/ovsdb-doc.in b/ovsdb/ovsdb-doc.in index 3c825d2a..1c914144 100755 --- a/ovsdb/ovsdb-doc.in +++ b/ovsdb/ovsdb-doc.in @@ -52,6 +52,8 @@ def inlineXmlToNroff(node, font): s = r'\fB' if node.hasAttribute('column'): s += node.attributes['column'].nodeValue + if node.hasAttribute('key'): + s += ':' + node.attributes['key'].nodeValue elif node.hasAttribute('table'): s += node.attributes['table'].nodeValue elif node.hasAttribute('group'): @@ -136,6 +138,8 @@ def typeAndConstraintsToNroff(column): constraints = column.type.constraintsToEnglish(escapeNroffLiteral) if constraints: type += ", " + constraints + if column.unique: + type += " (must be unique within table)" return type def columnToNroff(columnName, column, node): @@ -237,7 +241,8 @@ def docsToNroff(schemaFile, xmlFile, erFile, title=None): .de TQ . br . ns -. TP "\\$1" +. TP +\\$1 .. .de ST . PP @@ -286,6 +291,7 @@ Table Purpose if erFile: s += """ +.if !'\*[.T]'ascii' \{ .sp 1 .SH "TABLE RELATIONSHIPS" .PP @@ -303,7 +309,7 @@ represent strong references; thin lines represent weak references. for line in erStream: s += line + '\n' erStream.close() - s += ".RE\n" + s += ".RE\\}\n" for node in tableNodes: s += tableToNroff(schema, node) + "\n"