forked from GitHub/gf-core
Do not escape single quotes in strings in PrintGF. This seems to be unmarked hand-hacked behaviour that the old pretty printer had.
This commit is contained in:
@@ -71,7 +71,7 @@ instance Print Char where
|
||||
|
||||
mkEsc :: Char -> ShowS
|
||||
mkEsc s = case s of
|
||||
_ | elem s "\\\"'" -> showChar '\\' . showChar s
|
||||
_ | elem s "\\\"" -> showChar '\\' . showChar s -- H (don't escape ')
|
||||
'\n' -> showString "\\n"
|
||||
'\t' -> showString "\\t"
|
||||
_ -> showChar s
|
||||
|
||||
Reference in New Issue
Block a user