Skip to content

Commit

Permalink
BUGFIX: Multiline dictionary entries bug
Browse files Browse the repository at this point in the history
Javascript does not allow multiline strings.  Since extra
whitespace is ignored in a dictionary entry, this fix
simply tosses the newlines.
  • Loading branch information
timmahrt committed Feb 24, 2017
1 parent cf7dcb8 commit 204db21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lmeds/lmeds_io/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def _parse(self):
sectionsDict[key] = subKeyValueDict.keys()

for key, textList in parsedTextDict.items():
parsedTextDict[key] = "\n".join(textList).strip()
parsedTextDict[key] = " ".join(textList).strip()

return parsedTextDict, sectionsDict

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from distutils.core import setup
import io
setup(name='lmeds',
version='2.4.0',
version='2.4.1',
author='Tim Mahrt',
author_email='timmahrt@gmail.com',
package_dir={'lmeds':'lmeds'},
Expand Down

0 comments on commit 204db21

Please sign in to comment.