From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2134) id 472F8385736A; Thu, 5 May 2022 00:37:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 472F8385736A Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Jeff Johnston To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] Fix warning about duplicate id in docbook XML X-Act-Checkin: newlib-cygwin X-Git-Author: Jon Turney X-Git-Refname: refs/heads/master X-Git-Oldrev: 81b7cf09faa523e7bb438abe24e6e5376e45a0e5 X-Git-Newrev: a9d2d7baae28847972fe37753b8d5a6c581ac73e Message-Id: <20220505003738.472F8385736A@sourceware.org> Date: Thu, 5 May 2022 00:37:38 +0000 (GMT) X-BeenThere: newlib-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib GIT logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 May 2022 00:37:38 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3Da9d2d7baae2= 8847972fe37753b8d5a6c581ac73e commit a9d2d7baae28847972fe37753b8d5a6c581ac73e Author: Jon Turney Date: Mon May 2 13:55:16 2022 +0100 Fix warning about duplicate id in docbook XML =20 ../newlib/libc/libc.xml:22242: element refentry: validity error : ID ic= onv already defined =20 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. Diff: --- newlib/doc/chapter-texi2docbook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/newlib/doc/chapter-texi2docbook.py b/newlib/doc/chapter-texi2d= ocbook.py index 1a7803091..834a14e7c 100755 --- a/newlib/doc/chapter-texi2docbook.py +++ b/newlib/doc/chapter-texi2docbook.py @@ -29,7 +29,7 @@ def main(): l =3D l.strip() l =3D l.lower() if first_node: - print ('' % l.replace(' ', '_')) + print ('' % l.replace(' ', '_')) first_node =3D False elif l.startswith("@chapter "): l =3D l.replace("@chapter ", "", 1)