odf file metadata was not properly processed
This commit is contained in:
parent
c9ab4d9408
commit
4de12c11b7
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user