Skip to content

Commit

Permalink
Don't include spaces arround the text for InDesign
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigas Papathanasopoulos committed Feb 16, 2018
1 parent 374e591 commit 6f70b68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion openformats/formats/indesign.py
Expand Up @@ -26,7 +26,9 @@ class InDesignHandler(Handler):
SPECIFIER = None
PROCESSES_BINARY = True

CONTENT_REGEX = re.compile(r'(<Content>)(.*)?(</Content>)')
# The ? at the end of the string regex, makes it non-greedy in order to
# allow trailing spaces to be preserved
CONTENT_REGEX = re.compile(r'(<Content>\s*)(.*?)(\s*</Content>)')
SPECIAL_CHARACTERS_REGEX = re.compile(r'<\?ACE \d+\?>|<Br/>;')

""" Parse Methods """
Expand Down

0 comments on commit 6f70b68

Please sign in to comment.