Skip to content

Commit

Permalink
loaderString should escape \-characters
Browse files Browse the repository at this point in the history
  • Loading branch information
strguntbr committed Feb 5, 2014
1 parent 6797cf7 commit 9113307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def readfile(fn):

def loaderString(var):
fn = var.group(1)
return readfile(fn).replace('\n', '\\n').replace('\'', '\\\'')
return readfile(fn).replace('\\', '\\\\').replace('\n', '\\n').replace('\'', '\\\'')

def loaderRaw(var):
fn = var.group(1)
Expand Down

0 comments on commit 9113307

Please sign in to comment.