Un-escape newlines in delimiters for assemble module
This commit is contained in:
parent
a2dfffeac9
commit
bdd3ccec65
1 changed files with 2 additions and 0 deletions
|
@ -107,6 +107,8 @@ def assemble_from_fragments(src_path, delimiter=None, compiled_regexp=None):
|
|||
continue
|
||||
fragment = "%s/%s" % (src_path, f)
|
||||
if delimit_me and delimiter:
|
||||
# un-escape anything like newlines
|
||||
delimiter = delimiter.decode('unicode-escape')
|
||||
tmp.write(delimiter)
|
||||
# always make sure there's a newline after the
|
||||
# delimiter, so lines don't run together
|
||||
|
|
Loading…
Reference in a new issue