Skip to content

Commit

Permalink
Merge pull request #435 from ajdapretnar/import-documents-fix
Browse files Browse the repository at this point in the history
[WIP] Import Documents sanitizes pdfs
  • Loading branch information
robertcv authored Jun 14, 2019
2 parents 6020e1b + cba4552 commit a8ca79e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orangecontrib/text/import_documents.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def read_file(self):
for lt_obj in layout:
if isinstance(lt_obj, LTTextBox) or isinstance(lt_obj, LTTextLine):
extracted_text.append(lt_obj.get_text())
self.content = ' '.join(extracted_text)
self.content = ' '.join(extracted_text).replace('\x00', '')


class XmlReader(Reader):
Expand Down

0 comments on commit a8ca79e

Please sign in to comment.