Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jean-Francois Dockes
recoll
Commits
4de12c11
Commit
4de12c11
authored
Mar 07, 2017
by
Jean-Francois Dockes
Browse files
odf file metadata was not properly processed
parent
c9ab4d94
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filters/rclsoff.py
View file @
4de12c11
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment