X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f8dc1e5b5062456deab01f927e82b753202f31e3..aeb0dad220c5e4da9ddd5e8df9f6b0dc554f513f:/apps/api/handlers/text_handler.py?ds=inline diff --git a/apps/api/handlers/text_handler.py b/apps/api/handlers/text_handler.py index 5f27a2ab..ba8bf717 100755 --- a/apps/api/handlers/text_handler.py +++ b/apps/api/handlers/text_handler.py @@ -64,8 +64,7 @@ class DocumentTextHandler(BaseHandler): if not chunk: return document.data('xml') - xdoc = parser.WLDocument.from_string(document.data('xml'),\ - parse_dublincore=False) + xdoc = parser.WLDocument.from_string(document.data('xml'), parse_dublincore=False) xchunk = xdoc.chunk(chunk) @@ -123,7 +122,7 @@ class DocumentTextHandler(BaseHandler): log.info(data[:600]) log.info(chunks) - xdoc = parser.WLDocument.from_string(data) + xdoc = parser.WLDocument.from_string(data, parse_dublincore=False) errors = xdoc.merge_chunks(chunks) if len(errors):