From 4e77045d7808a49254c9caca2401af32ef0ea9af Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 16 Dec 2013 15:23:02 +0000 Subject: Set default paragraph rule to require fresh p element --- mammoth/conversion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mammoth') diff --git a/mammoth/conversion.py b/mammoth/conversion.py index e21e3a0..b324c16 100644 --- a/mammoth/conversion.py +++ b/mammoth/conversion.py @@ -94,7 +94,7 @@ class DocumentConverter(object): def _find_html_path_for_paragraph(self, paragraph): - default = html_paths.path([html_paths.element("p")]) + default = html_paths.path([html_paths.element("p", fresh=True)]) return self._find_html_path(paragraph, "paragraph", default) def _find_html_path_for_run(self, run): -- cgit v1.2.3