Strip \r for windows
This commit is contained in:
parent
aac4bc41e9
commit
3063370e4d
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user