diff --git a/src/serialiser.coffee b/src/serialiser.coffee index aa2b58c..834d13f 100644 --- a/src/serialiser.coffee +++ b/src/serialiser.coffee @@ -35,6 +35,8 @@ class Serialiser unless typeof serialised is 'string' or serialised is null throw new Error("serialiser #{node.type} didn\'t return a string") + + serialised = serialised.replace /[\s\n]+\\[\s\n]+/g, ' ' serialised