Skip to content

Commit

Permalink
Merge pull request IITC-CE#3 from strguntbr/pull_request/possible_bui…
Browse files Browse the repository at this point in the history
…ld.py_bug

build.py: loaderString should escape \-characters? IITC-CE#762
  • Loading branch information
modos189 authored Nov 20, 2018
2 parents 709d822 + 9113307 commit cbfc61b
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 cbfc61b

Please sign in to comment.