fixed double escape for quotes in editor/SCsub
This commit is contained in:
parent
5a49106ff4
commit
1d380bf03d
@ -237,7 +237,7 @@ def make_license_header(target, source, env):
|
|||||||
g.write("static const char *about_license =")
|
g.write("static const char *about_license =")
|
||||||
|
|
||||||
for line in f:
|
for line in f:
|
||||||
escaped_string = escape_string(line.strip().replace("\"", "\\\""))
|
escaped_string = escape_string(line.strip())
|
||||||
g.write("\n\t\"" + escaped_string + "\\n\"")
|
g.write("\n\t\"" + escaped_string + "\\n\"")
|
||||||
|
|
||||||
g.write(";\n")
|
g.write(";\n")
|
||||||
@ -323,12 +323,12 @@ def make_license_header(target, source, env):
|
|||||||
for k in j[0].split("\n"):
|
for k in j[0].split("\n"):
|
||||||
if file_body != "":
|
if file_body != "":
|
||||||
file_body += "\\n\"\n"
|
file_body += "\\n\"\n"
|
||||||
escaped_string = escape_string(k.strip().replace("\"", "\\\""))
|
escaped_string = escape_string(k.strip())
|
||||||
file_body += "\t\"" + escaped_string
|
file_body += "\t\"" + escaped_string
|
||||||
for k in j[1].split("\n"):
|
for k in j[1].split("\n"):
|
||||||
if copyright_body != "":
|
if copyright_body != "":
|
||||||
copyright_body += "\\n\"\n"
|
copyright_body += "\\n\"\n"
|
||||||
escaped_string = escape_string(k.strip().replace("\"", "\\\""))
|
escaped_string = escape_string(k.strip())
|
||||||
copyright_body += "\t\"" + escaped_string
|
copyright_body += "\t\"" + escaped_string
|
||||||
|
|
||||||
about_tp_file += "\t" + file_body + "\",\n"
|
about_tp_file += "\t" + file_body + "\",\n"
|
||||||
@ -343,7 +343,7 @@ def make_license_header(target, source, env):
|
|||||||
for j in i[1].split("\n"):
|
for j in i[1].split("\n"):
|
||||||
if body != "":
|
if body != "":
|
||||||
body += "\\n\"\n"
|
body += "\\n\"\n"
|
||||||
escaped_string = escape_string(j.strip().replace("\"", "\\\""))
|
escaped_string = escape_string(j.strip())
|
||||||
body += "\t\"" + escaped_string
|
body += "\t\"" + escaped_string
|
||||||
|
|
||||||
about_license_name += "\t\"" + i[0] + "\",\n"
|
about_license_name += "\t\"" + i[0] + "\",\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user