mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-30 22:43:14 +03:00
- HTMLtree.c: applied change for Paul Sponagl on script saving
- Makefile.am: the warning about entity title.xml are normal. Daniel
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Mon Apr 23 11:05:56 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
|
* HTMLtree.c: applied change for Paul Sponagl on script saving
|
||||||
|
* Makefile.am: the warning about entity title.xml are normal.
|
||||||
|
|
||||||
Sun Apr 22 22:09:35 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
Sun Apr 22 22:09:35 CEST 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
|
||||||
|
|
||||||
* configure.in: release of 2.3.7
|
* configure.in: release of 2.3.7
|
||||||
|
33
HTMLtree.c
33
HTMLtree.c
@ -493,6 +493,16 @@ htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) {
|
|||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (cur->type == HTML_PRESERVE_NODE) {
|
||||||
|
if (cur->content != NULL) {
|
||||||
|
#ifndef XML_USE_BUFFER_CONTENT
|
||||||
|
xmlBufferWriteCHAR(buf, cur->content);
|
||||||
|
#else
|
||||||
|
xmlBufferWriteCHAR(buf, xmlBufferContent(cur->content));
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (cur->type == HTML_COMMENT_NODE) {
|
if (cur->type == HTML_COMMENT_NODE) {
|
||||||
if (cur->content != NULL) {
|
if (cur->content != NULL) {
|
||||||
xmlBufferWriteChar(buf, "<!--");
|
xmlBufferWriteChar(buf, "<!--");
|
||||||
@ -577,17 +587,9 @@ htmlNodeDump(xmlBufferPtr buf, xmlDocPtr doc, xmlNodePtr cur) {
|
|||||||
xmlBufferWriteCHAR(buf, cur->name);
|
xmlBufferWriteCHAR(buf, cur->name);
|
||||||
xmlBufferWriteChar(buf, ">");
|
xmlBufferWriteChar(buf, ">");
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
if (!htmlIsAutoClosed(doc, cur)) {
|
|
||||||
xmlBufferWriteChar(buf, "</");
|
|
||||||
xmlBufferWriteCHAR(buf, cur->name);
|
|
||||||
xmlBufferWriteChar(buf, ">");
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
xmlBufferWriteChar(buf, "</");
|
xmlBufferWriteChar(buf, "</");
|
||||||
xmlBufferWriteCHAR(buf, cur->name);
|
xmlBufferWriteCHAR(buf, cur->name);
|
||||||
xmlBufferWriteChar(buf, ">");
|
xmlBufferWriteChar(buf, ">");
|
||||||
#endif
|
|
||||||
if (cur->next != NULL) {
|
if (cur->next != NULL) {
|
||||||
if ((cur->next->type != HTML_TEXT_NODE) &&
|
if ((cur->next->type != HTML_TEXT_NODE) &&
|
||||||
(cur->next->type != HTML_ENTITY_REF_NODE))
|
(cur->next->type != HTML_ENTITY_REF_NODE))
|
||||||
@ -947,17 +949,9 @@ htmlNodeDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr doc,
|
|||||||
(cur->children != cur->last))
|
(cur->children != cur->last))
|
||||||
xmlOutputBufferWriteString(buf, "\n");
|
xmlOutputBufferWriteString(buf, "\n");
|
||||||
}
|
}
|
||||||
#if 0
|
|
||||||
if (!htmlIsAutoClosed(doc, cur)) {
|
|
||||||
xmlOutputBufferWriteString(buf, "</");
|
|
||||||
xmlOutputBufferWriteString(buf, (const char *)cur->name);
|
|
||||||
xmlOutputBufferWriteString(buf, ">");
|
|
||||||
}
|
|
||||||
#else
|
|
||||||
xmlOutputBufferWriteString(buf, "</");
|
xmlOutputBufferWriteString(buf, "</");
|
||||||
xmlOutputBufferWriteString(buf, (const char *)cur->name);
|
xmlOutputBufferWriteString(buf, (const char *)cur->name);
|
||||||
xmlOutputBufferWriteString(buf, ">");
|
xmlOutputBufferWriteString(buf, ">");
|
||||||
#endif
|
|
||||||
if (cur->next != NULL) {
|
if (cur->next != NULL) {
|
||||||
if ((cur->next->type != HTML_TEXT_NODE) &&
|
if ((cur->next->type != HTML_TEXT_NODE) &&
|
||||||
(cur->next->type != HTML_ENTITY_REF_NODE))
|
(cur->next->type != HTML_ENTITY_REF_NODE))
|
||||||
@ -984,13 +978,6 @@ htmlDocContentDumpOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, const char *enco
|
|||||||
cur->type = XML_HTML_DOCUMENT_NODE;
|
cur->type = XML_HTML_DOCUMENT_NODE;
|
||||||
if (cur->intSubset != NULL) {
|
if (cur->intSubset != NULL) {
|
||||||
htmlDtdDumpOutput(buf, cur, NULL);
|
htmlDtdDumpOutput(buf, cur, NULL);
|
||||||
#if 0
|
|
||||||
/* Disabled for XSLT output */
|
|
||||||
} else {
|
|
||||||
/* Default to HTML-4.0 transitionnal @@@@ */
|
|
||||||
xmlOutputBufferWriteString(buf, "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\" \"http://www.w3.org/TR/REC-html40/loose.dtd\">\n");
|
|
||||||
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
if (cur->children != NULL) {
|
if (cur->children != NULL) {
|
||||||
htmlNodeListDumpOutput(buf, cur, cur->children, encoding);
|
htmlNodeListDumpOutput(buf, cur, cur->children, encoding);
|
||||||
|
@ -149,6 +149,8 @@ XMLtests : xmllint
|
|||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XML regression tests"
|
@echo "## XML regression tests"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
|
@echo "## You should see one warning on entity 'title.xml' for ent2"
|
||||||
|
@echo "##"
|
||||||
@(for i in $(srcdir)/test/* ; do \
|
@(for i in $(srcdir)/test/* ; do \
|
||||||
name=`basename $$i`; \
|
name=`basename $$i`; \
|
||||||
if [ ! -d $$i ] ; then \
|
if [ ! -d $$i ] ; then \
|
||||||
@ -166,6 +168,8 @@ XMLtests : xmllint
|
|||||||
@echo "##"
|
@echo "##"
|
||||||
@echo "## XML regression tests on memory"
|
@echo "## XML regression tests on memory"
|
||||||
@echo "##"
|
@echo "##"
|
||||||
|
@echo "## You should see two warnings on entity 'title.xml' for ent2"
|
||||||
|
@echo "##"
|
||||||
@(for i in $(srcdir)/test/* ; do \
|
@(for i in $(srcdir)/test/* ; do \
|
||||||
name=`basename $$i`; \
|
name=`basename $$i`; \
|
||||||
if [ ! -d $$i ] ; then \
|
if [ ! -d $$i ] ; then \
|
||||||
|
40
aclocal.m4
vendored
40
aclocal.m4
vendored
@ -620,31 +620,35 @@ esac
|
|||||||
])
|
])
|
||||||
|
|
||||||
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
|
# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
|
||||||
# the libltdl convenience library, adds --enable-ltdl-convenience to
|
# the libltdl convenience library and INCLTDL to the include flags for
|
||||||
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
|
# the libltdl header and adds --enable-ltdl-convenience to the
|
||||||
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
|
# configure arguments. Note that LIBLTDL and INCLTDL are not
|
||||||
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
|
# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
|
||||||
# '${top_builddir}/' (note the single quotes!) if your package is not
|
# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
|
||||||
# flat, and, if you're not using automake, define top_builddir as
|
# with '${top_builddir}/' and INCLTDL will be prefixed with
|
||||||
# appropriate in the Makefiles.
|
# '${top_srcdir}/' (note the single quotes!). If your package is not
|
||||||
|
# flat and you're not using automake, define top_builddir and
|
||||||
|
# top_srcdir appropriately in the Makefiles.
|
||||||
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||||
case "$enable_ltdl_convenience" in
|
case "$enable_ltdl_convenience" in
|
||||||
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
|
||||||
"") enable_ltdl_convenience=yes
|
"") enable_ltdl_convenience=yes
|
||||||
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
|
||||||
esac
|
esac
|
||||||
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la
|
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
|
||||||
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
|
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
||||||
])
|
])
|
||||||
|
|
||||||
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
|
# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
|
||||||
# the libltdl installable library, and adds --enable-ltdl-install to
|
# the libltdl installable library and INCLTDL to the include flags for
|
||||||
# the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor
|
# the libltdl header and adds --enable-ltdl-install to the configure
|
||||||
# is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed
|
# arguments. Note that LIBLTDL and INCLTDL are not AC_SUBSTed, nor is
|
||||||
# to be `${top_builddir}/libltdl'. Make sure you start DIR with
|
# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
|
||||||
# '${top_builddir}/' (note the single quotes!) if your package is not
|
# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
|
||||||
# flat, and, if you're not using automake, define top_builddir as
|
# be prefixed with '${top_builddir}/' and INCLTDL will be prefixed
|
||||||
# appropriate in the Makefiles.
|
# with '${top_srcdir}/' (note the single quotes!). If your package is
|
||||||
|
# not flat and you're not using automake, define top_builddir and
|
||||||
|
# top_srcdir appropriately in the Makefiles.
|
||||||
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
|
||||||
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
||||||
AC_CHECK_LIB(ltdl, main,
|
AC_CHECK_LIB(ltdl, main,
|
||||||
@ -657,8 +661,8 @@ AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
|
|||||||
])
|
])
|
||||||
if test x"$enable_ltdl_install" = x"yes"; then
|
if test x"$enable_ltdl_install" = x"yes"; then
|
||||||
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
ac_configure_args="$ac_configure_args --enable-ltdl-install"
|
||||||
LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la
|
LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
|
||||||
INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl'])
|
INCLTDL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
|
||||||
else
|
else
|
||||||
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
|
||||||
LIBLTDL="-lltdl"
|
LIBLTDL="-lltdl"
|
||||||
|
Reference in New Issue
Block a user