Strip \r for windows

This commit is contained in:
Phil Howard 2016-12-16 00:18:41 +00:00
parent aac4bc41e9
commit 3063370e4d

View File

@ -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)