[ovs-dev] [PATCH ovn v2 1/7] xml2nroff: Properly support <h4>.

Ben Pfaff blp at ovn.org
Wed Mar 18 18:45:42 UTC 2020


<h4> uses .SU but xml2nroff didn't define .SU.

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

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"
 
-- 
2.24.1



More information about the dev mailing list