Closed lue-bird closed 4 months ago
Been a while since I looked at this, but I definitely remember problems with escaping unicode that were never fixed.
Will you be submitting a PR with a fix?
Sure, let me make a PR for this.
Edit: done in #51
Published as 6.0.3
While all the usual escape sequences like
Elm.CodeGen.string "\n"
or with"\\"
,"\t"
or"\""
get printed as"\n"
,"\\"
and"\t"
,"\""
, the same is not true for carriage return and backslash u{...} sequences:the
elm-test
output isThis was noticed by Ed Kelly in https://github.com/lue-bird/elm-review-documentation-code-snippet/issues/5
The fix would be recognizing and handling those in https://github.com/the-sett/elm-syntax-dsl/blob/master/src/Elm/Pretty.elm#L1784 which needs to check both