Commit 4de12c11 authored by Jean-Francois Dockes's avatar Jean-Francois Dockes
Browse files

odf file metadata was not properly processed

parent c9ab4d94
......@@ -143,8 +143,8 @@ class OOExtractor:
self.em.rclog("unzip failed: %s" % err)
return (False, "", "", rclexecm.RclExecM.eofnow)
docdata = b'<html><head><meta http-equiv="Content-Type"' \
b'content="text/html; charset=UTF-8"></head><body>'
docdata = b'<html>\n<head>\n<meta http-equiv="Content-Type"' \
b'content="text/html; charset=UTF-8">'
try:
metadata = zip.read("meta.xml")
......@@ -157,6 +157,8 @@ class OOExtractor:
#self.em.rclog("no/bad metadata in %s" % fn)
pass
docdata += b'</head>\n<body>\n'
try:
content = zip.read("content.xml")
if content:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment