* htmlDocContentDumpFormatOutput: * @buf: the HTML buffer output * @cur: the document * @encoding: the encoding string (unused) * @format: should formatting spaces been added * * Dump an HTML document. */
| 971 | * Dump an HTML document. |
| 972 | */ |
| 973 | void |
| 974 | htmlDocContentDumpFormatOutput(xmlOutputBufferPtr buf, xmlDocPtr cur, |
| 975 | const char *encoding ATTRIBUTE_UNUSED, |
| 976 | int format) { |
| 977 | int type = 0; |
| 978 | if (cur) { |
| 979 | type = cur->type; |
| 980 | cur->type = XML_HTML_DOCUMENT_NODE; |
| 981 | } |
| 982 | htmlNodeDumpFormatOutput(buf, cur, (xmlNodePtr) cur, NULL, format); |
| 983 | if (cur) |
| 984 | cur->type = (xmlElementType) type; |
| 985 | } |
| 986 | |
| 987 | /** |
| 988 | * htmlDocContentDumpOutput: |
no test coverage detected