1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-23 01:52:48 +03:00

add XML_SAVE_NO_EMPTY save option and use option from xmlSaveCtxtPtr

* include/libxml/xmlsave.h xmlsave.c: add XML_SAVE_NO_EMPTY save option
  and use option from xmlSaveCtxtPtr rather than global during output.
* xmlsave.c: fix some output formatting for meta element under XHTML.
This commit is contained in:
Rob Richards
2005-09-12 12:16:35 +00:00
parent 602434dee5
commit 2ce51c0646
3 changed files with 46 additions and 11 deletions

View File

@@ -28,7 +28,8 @@ extern "C" {
*/
typedef enum {
XML_SAVE_FORMAT = 1<<0, /* format save output */
XML_SAVE_NO_DECL = 1<<1 /* drop the xml declaration */
XML_SAVE_NO_DECL = 1<<1, /* drop the xml declaration */
XML_SAVE_NO_EMPTY = 1<<2 /* no empty tags */
} xmlSaveOption;