Open rattrayalex opened 1 year ago
See https://github.com/indentjs/endent/pull/12 for an example failing test.
const insertion = "indented 1\n\nindented 2"; const output = endent` foo ${insertion} `; const current = output === "foo\n indented 1\n \n indented 2" const desired = output === "foo\n indented 1\n\n indented 2"
I have worked around this by tacking .replaceAll(/\n\s*\n/gi, '\n\n') at the end of our dedent() calls in a wrapper function.
.replaceAll(/\n\s*\n/gi, '\n\n')
dedent()
See https://github.com/indentjs/endent/pull/12 for an example failing test.
I have worked around this by tacking
.replaceAll(/\n\s*\n/gi, '\n\n')
at the end of ourdedent()
calls in a wrapper function.