From a9d2d7baae28847972fe37753b8d5a6c581ac73e Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Mon, 2 May 2022 13:55:16 +0100 Subject: Fix warning about duplicate id in docbook XML ../newlib/libc/libc.xml:22242: element refentry: validity error : ID iconv already defined Use a separate namespace for chaper ids, to avoid collision between the ids for the chapter and function 'iconv', now that iconv documentation is generated unconditionally. --- newlib/doc/chapter-texi2docbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/doc') diff --git a/newlib/doc/chapter-texi2docbook.py b/newlib/doc/chapter-texi2docbook.py index 1a7803091..834a14e7c 100755 --- a/newlib/doc/chapter-texi2docbook.py +++ b/newlib/doc/chapter-texi2docbook.py @@ -29,7 +29,7 @@ def main(): l = l.strip() l = l.lower() if first_node: - print ('' % l.replace(' ', '_')) + print ('' % l.replace(' ', '_')) first_node = False elif l.startswith("@chapter "): l = l.replace("@chapter ", "", 1) -- cgit v1.2.3