1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-19 14:50:07 +03:00

fixed missing output of internal DTD param entities when nothing else

* tree.c: fixed missing output of internal DTD param entities when
  nothing else present in DTD (bug 134052)
This commit is contained in:
William M. Brack 2004-02-11 00:14:52 +00:00
parent 030a7a1729
commit 6f108a1d0b
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Feb 11 08:13:58 HKT 2004 William Brack <wbrack@mmm.com.hk
* tree.c: fixed missing output of internal DTD param entities when
nothing else present in DTD (bug 134052)
Tue Feb 10 19:24:38 HKT 2004 William Brack <wbrack@mmm.com.hk>
* encoding.c: applied patch supplied by Christophe Dubach

3
tree.c
View File

@ -7370,7 +7370,8 @@ xmlDtdDumpOutput(xmlOutputBufferPtr buf, xmlDtdPtr dtd, const char *encoding) {
xmlBufferWriteQuotedString(buf->buffer, dtd->SystemID);
}
if ((dtd->entities == NULL) && (dtd->elements == NULL) &&
(dtd->attributes == NULL) && (dtd->notations == NULL)) {
(dtd->attributes == NULL) && (dtd->notations == NULL) &&
(dtd->pentities == NULL)) {
xmlOutputBufferWriteString(buf, ">");
return;
}