[ovs-dev,ovn,v2,1/7] xml2nroff: Properly support <h4>.
diff mbox series

Message ID 20200318184548.3000357-2-blp@ovn.org
State New
Headers show
Series
  • gateway documentation improvements
Related show

Commit Message

Ben Pfaff March 18, 2020, 6:45 p.m. UTC
<h4> uses .SU but xml2nroff didn't define .SU.

Signed-off-by: Ben Pfaff <blp@ovn.org>
---
 build-aux/xml2nroff | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

Patch
diff mbox series

diff --git a/build-aux/xml2nroff b/build-aux/xml2nroff
index bd4e87928e4f..764ace9b19ba 100755
--- a/build-aux/xml2nroff
+++ b/build-aux/xml2nroff
@@ -90,8 +90,14 @@  def manpage_to_nroff(xml_file, subst, include_path, version=None):
 .  I "\\$1"
 .  RE
 ..
-''' % (build.nroff.text_to_nroff(program), build.nroff.text_to_nroff(section),
-       build.nroff.text_to_nroff(title), build.nroff.text_to_nroff(version))
+.de SU
+.  PP
+.  I "\\\\$1"
+..
+build/''' % (build.nroff.text_to_nroff(program),
+             build.nroff.text_to_nroff(section),
+             build.nroff.text_to_nroff(title),
+             build.nroff.text_to_nroff(version))
 
     s += build.nroff.block_xml_to_nroff(doc.childNodes) + "\n"