mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
- DOCBparser.c: patche from Lszl Kovcs, fixed entities refs
in attributes handling Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Wed May 2 14:39:57 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* DOCBparser.c: patche from L<>szl<7A> Kov<6F>cs, fixed entities refs
|
||||||
|
in attributes handling
|
||||||
|
|
||||||
Wed May 2 12:56:04 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
Wed May 2 12:56:04 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* xmlIO.c: Bjorn Reese provided a fix for a problem on buffer
|
* xmlIO.c: Bjorn Reese provided a fix for a problem on buffer
|
||||||
|
15
DOCBparser.c
15
DOCBparser.c
@ -503,6 +503,7 @@ docbookElementTable[] = {
|
|||||||
{ "date", 0, 0, 0, 4, 0, "" }, /* docinfo */
|
{ "date", 0, 0, 0, 4, 0, "" }, /* docinfo */
|
||||||
{ "dedication", 0, 0, 0, 9, 0, "" }, /* sect.title.content */
|
{ "dedication", 0, 0, 0, 9, 0, "" }, /* sect.title.content */
|
||||||
{ "destructorsynopsis",0,0, 0, 9, 0, "" }, /* modifier */
|
{ "destructorsynopsis",0,0, 0, 9, 0, "" }, /* modifier */
|
||||||
|
{ "docinfo", 0, 0, 0, 9, 0, "" },
|
||||||
{ "edition", 0, 0, 0, 4, 0, "" }, /* docinfo */
|
{ "edition", 0, 0, 0, 4, 0, "" }, /* docinfo */
|
||||||
{ "editor", 0, 0, 0, 9, 0, "" }, /* person.ident.mix */
|
{ "editor", 0, 0, 0, 9, 0, "" }, /* person.ident.mix */
|
||||||
{ "email", 0, 0, 0, 4, 0, "" }, /* docinfo */
|
{ "email", 0, 0, 0, 4, 0, "" }, /* docinfo */
|
||||||
@ -539,8 +540,8 @@ docbookElementTable[] = {
|
|||||||
{ "glossdiv", 0, 0, 0, 9, 0, "" }, /* sect.title.content */
|
{ "glossdiv", 0, 0, 0, 9, 0, "" }, /* sect.title.content */
|
||||||
{ "glossentry", 0, 0, 0, 9, 0, "" }, /* glossterm */
|
{ "glossentry", 0, 0, 0, 9, 0, "" }, /* glossterm */
|
||||||
{ "glosslist", 0, 0, 0, 9, 0, "" }, /* glossentry */
|
{ "glosslist", 0, 0, 0, 9, 0, "" }, /* glossentry */
|
||||||
{ "glossseealso",0, 0, 0, 2, 0, "" }, /* para */
|
{ "glossseealso",0, 0, 1, 2, 0, "" }, /* para */
|
||||||
{ "glosssee", 0, 0, 0, 2, 0, "" }, /* para */
|
{ "glosssee", 0, 0, 1, 2, 0, "" }, /* para */
|
||||||
{ "glossterm", 0, 0, 0, 2, 0, "" }, /* para */
|
{ "glossterm", 0, 0, 0, 2, 0, "" }, /* para */
|
||||||
{ "graphic", 0, 0, 0, 9, 0, "" },
|
{ "graphic", 0, 0, 0, 9, 0, "" },
|
||||||
{ "graphicco", 0, 0, 0, 9, 0, "" }, /* areaspec */
|
{ "graphicco", 0, 0, 0, 9, 0, "" }, /* areaspec */
|
||||||
@ -650,7 +651,7 @@ docbookElementTable[] = {
|
|||||||
{ "prefaceinfo",0, 0, 0, 9, 0, "" }, /* graphic */
|
{ "prefaceinfo",0, 0, 0, 9, 0, "" }, /* graphic */
|
||||||
{ "preface", 0, 0, 0, 9, 0, "" }, /* prefaceinfo */
|
{ "preface", 0, 0, 0, 9, 0, "" }, /* prefaceinfo */
|
||||||
{ "primaryie", 0, 0, 0, 4, 0, "" }, /* ndxterm */
|
{ "primaryie", 0, 0, 0, 4, 0, "" }, /* ndxterm */
|
||||||
{ "primary ", 0, 0, 0, 4, 0, "" }, /* ndxterm */
|
{ "primary", 0, 0, 0, 9, 0, "" }, /* ndxterm */
|
||||||
{ "printhistory",0, 0, 0, 9, 0, "" }, /* para.class */
|
{ "printhistory",0, 0, 0, 9, 0, "" }, /* para.class */
|
||||||
{ "procedure", 0, 0, 0, 9, 0, "" }, /* formalobject.title.content */
|
{ "procedure", 0, 0, 0, 9, 0, "" }, /* formalobject.title.content */
|
||||||
{ "productname",0, 0, 0, 2, 0, "" }, /* para */
|
{ "productname",0, 0, 0, 2, 0, "" }, /* para */
|
||||||
@ -2767,7 +2768,7 @@ docbParseSGMLAttribute(docbParserCtxtPtr ctxt, const xmlChar stop) {
|
|||||||
*out++ = ((c >> bits) & 0x3F) | 0x80;
|
*out++ = ((c >> bits) & 0x3F) | 0x80;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
ent = docbParseEntityRef(ctxt, &name);
|
xent = docbParseEntityRef(ctxt, &name);
|
||||||
if (name == NULL) {
|
if (name == NULL) {
|
||||||
*out++ = '&';
|
*out++ = '&';
|
||||||
if (out - buffer > buffer_size - 100) {
|
if (out - buffer > buffer_size - 100) {
|
||||||
@ -2776,7 +2777,10 @@ docbParseSGMLAttribute(docbParserCtxtPtr ctxt, const xmlChar stop) {
|
|||||||
growBuffer(buffer);
|
growBuffer(buffer);
|
||||||
out = &buffer[indx];
|
out = &buffer[indx];
|
||||||
}
|
}
|
||||||
} else if (ent == NULL) {
|
*out++ = '&';
|
||||||
|
} else {
|
||||||
|
ent = docbEntityLookup(name);
|
||||||
|
if (ent == NULL) {
|
||||||
*out++ = '&';
|
*out++ = '&';
|
||||||
cur = name;
|
cur = name;
|
||||||
while (*cur != 0) {
|
while (*cur != 0) {
|
||||||
@ -2815,6 +2819,7 @@ docbParseSGMLAttribute(docbParserCtxtPtr ctxt, const xmlChar stop) {
|
|||||||
xmlFree(name);
|
xmlFree(name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
unsigned int c;
|
unsigned int c;
|
||||||
int bits;
|
int bits;
|
||||||
|
Reference in New Issue
Block a user