summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-02-15 17:32:00 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2015-02-15 17:32:00 -0800
commit982ba5a528111dbf647e90f412498e315fcf432c (patch)
tree2a2cf570d3d8a2f19072705d0c02507b2376eba6 /src/main.c
parent12e9e3c4d06fa33f2d72ea4eb7ee2978f59c1313 (diff)
Moved normalization step from XML renderer to main.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 3834c1f..6dc3d34 100644
--- a/src/main.c
+++ b/src/main.c
@@ -152,6 +152,12 @@ int main(int argc, char *argv[])
end_timer("finishing document");
cmark_parser_free(parser);
+ if (options & CMARK_OPT_NORMALIZE) {
+ start_timer();
+ cmark_consolidate_text_nodes(document);
+ end_timer("normalizing document");
+ }
+
start_timer();
print_document(document, writer, options);
end_timer("print_document");