After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 784181 - Cannot build documentation with the latest gtk-doc because of xml error
Cannot build documentation with the latest gtk-doc because of xml error
Status: RESOLVED OBSOLETE
Product: pango
Classification: Platform
Component: docs
unspecified
Other FreeBSD
: Normal normal
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2017-06-25 15:32 UTC by Ting-Wei Lan
Modified: 2018-05-22 13:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
docs: Use CDATA section to avoid XML error caused by example code (974 bytes, patch)
2017-06-25 15:34 UTC, Ting-Wei Lan
none Details | Review

Description Ting-Wei Lan 2017-06-25 15:32:05 UTC
It seems that gtk-doc tools no longer allow using < and > directly in <programlisting> after gtk-doc is rewritten in python.


Error in gtkdoc helper script:
'gtkdoc-mkhtml' failed with status 6
../xml/pangocairo.xml:153: parser error : error parsing attribute name
#include <pango/pangocairo.h>
               ^
../xml/pangocairo.xml:153: parser error : attributes construct error
#include <pango/pangocairo.h>
               ^
../xml/pangocairo.xml:153: parser error : Couldn't find end of Start Tag pango line 153
#include <pango/pangocairo.h>
               ^
../xml/pangocairo.xml:242: parser error : Opening and ending tag mismatch: math.h line 152 and programlisting
</programlisting>
                 ^
../xml/pangocairo.xml:243: parser error : Opening and ending tag mismatch: programlisting line 151 and example
</example>
          ^
../xml/pangocairo.xml:249: parser error : Opening and ending tag mismatch: example line 149 and refsect1
</refsect1>
           ^
../xml/pangocairo.xml:1124: parser error : Opening and ending tag mismatch: refsect1 line 122 and refentry
</refentry>
           ^
../xml/pangocairo.xml:1125: parser error : Premature end of data in tag refentry line 8

^
../pango-docs.sgml:33: element include: XInclude error : could not load ../xml/pangocairo.xml, and no fallback was found


This problem has be reported to gtk-doc as bug 783420, and they recommend using CDATA sections or |[ and ]|.
Comment 1 Ting-Wei Lan 2017-06-25 15:34:42 UTC
Created attachment 354419 [details] [review]
docs: Use CDATA section to avoid XML error caused by example code
Comment 2 GNOME Infrastructure Team 2018-05-22 13:25:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/pango/issues/283.