Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-05-02 15:55:16 +0300
committerJeff Johnston <jjohnstn@redhat.com>2022-05-05 00:06:07 +0300
commita9d2d7baae28847972fe37753b8d5a6c581ac73e (patch)
treeb43cdc1a34b6710e22432d37e6484e328711b75f /newlib/doc
parent81b7cf09faa523e7bb438abe24e6e5376e45a0e5 (diff)
Fix warning about duplicate id in docbook XML
../newlib/libc/libc.xml:22242: element refentry: validity error : ID iconv already defined <refentry id="iconv"> 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.
Diffstat (limited to 'newlib/doc')
-rwxr-xr-xnewlib/doc/chapter-texi2docbook.py2
1 files changed, 1 insertions, 1 deletions
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 ('<chapter id="%s" xmlns:xi="http://www.w3.org/2001/XInclude">' % l.replace(' ', '_'))
+ print ('<chapter id="%s_chapter" xmlns:xi="http://www.w3.org/2001/XInclude">' % l.replace(' ', '_'))
first_node = False
elif l.startswith("@chapter "):
l = l.replace("@chapter ", "", 1)