diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-12-01 15:30:36 +0100 |
|---|---|---|
| committer | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2021-12-05 02:52:22 +0100 |
| commit | ec63d0bbd21aa3d3f33cd762bd656ea8eb0af4a6 (patch) | |
| tree | 0c113ca28319dbef82c6341989a3717205f32e79 /core/encoding/xml/debug_print.odin | |
| parent | 32eab04d662b0c1128e64a4b91fb81f5f2be5a95 (diff) | |
[xml] Robustness improvement.
Can now parse https://www.w3.org/2003/entities/2007xml/unicode.xml no problem.
Diffstat (limited to 'core/encoding/xml/debug_print.odin')
| -rw-r--r-- | core/encoding/xml/debug_print.odin | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/encoding/xml/debug_print.odin b/core/encoding/xml/debug_print.odin index 65b71e30b..e6a8c9433 100644 --- a/core/encoding/xml/debug_print.odin +++ b/core/encoding/xml/debug_print.odin @@ -36,6 +36,10 @@ print :: proc(writer: io.Writer, doc: ^Document) -> (written: int, err: io.Error } } + for comment in doc.comments { + written += wprintf(writer, "[Pre-root comment] %v\n", comment) + } + if doc.root != nil { wprintln(writer, " --- ") print_element(writer, doc.root) |