projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ofp-util: New function for parsing key-value pairs.
[openvswitch]
/
ovsdb
/
ovsdb-doc.in
diff --git
a/ovsdb/ovsdb-doc.in
b/ovsdb/ovsdb-doc.in
index b325b263283bd924bbe7ce497078ca34999991e6..17eca52e76b07a3084d31c1c9d169f6c6bd9d737 100755
(executable)
--- 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
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'):
elif node.hasAttribute('table'):
s += node.attributes['table'].nodeValue
elif node.hasAttribute('group'):
@@
-86,7
+88,7
@@
def blockXmlToNroff(nodes, para='.PP'):
and liNode.tagName == 'li'):
i += 1
if node.tagName == 'ul':
and liNode.tagName == 'li'):
i += 1
if node.tagName == 'ul':
- s += ".IP \\bu\n"
+ s += ".IP \\
(
bu\n"
else:
s += ".IP %d. .25in\n" % i
s += blockXmlToNroff(liNode.childNodes, ".IP")
else:
s += ".IP %d. .25in\n" % i
s += blockXmlToNroff(liNode.childNodes, ".IP")
@@
-239,7
+241,8
@@
def docsToNroff(schemaFile, xmlFile, erFile, title=None):
.de TQ
. br
. ns
.de TQ
. br
. ns
-. TP "\\$1"
+. TP
+\\$1
..
.de ST
. PP
..
.de ST
. PP