Support backslash escaping, retain exact newline escaping #3638
This PR contains:
Are tests included?
List any relevant issue numbers:
This adds backslash escaping as well to the recent escaping work.
I've also reverted to the direct newline escaping over the table approach here, but we can add back the table too if you prefer.
I've also added an extra check in the escaping function to avoid any replacement if escaping is unnecessary. This is a super minor mostly theoretical pref improvement to avoid copying strings.
The text was updated successfully, but these errors were encountered:
@@ Coverage Diff @@ ## master #3638 +/- ## ======================================= Coverage 96.54% 96.54% ======================================= Files 183 183 Lines 6244 6246 +2 Branches 1830 1831 +1 ======================================= + Hits 6028 6030 +2 Misses 107 107 Partials 109 109