Permalink
Browse files

Strip \r for windows

  • Loading branch information...
1 parent aac4bc4 commit 3063370e4d5c2e1b4d935de1a3b5808ef44d7baa @Gadgetoid committed Dec 16, 2016
Showing with 1 addition and 0 deletions.
  1. +1 −0 markjaml.py
View
@@ -32,6 +32,7 @@ def load(file):
Returns an object that includes the JSON data, and the parsed HTML.
'''
markson = open(file).read()
+ markson = markson.replace('\r','')
_data = re.search(re.compile(r'<!--(JSON:|\n---\n)(.*)-->', re.DOTALL), markson)

0 comments on commit 3063370

Please sign in to comment.