1
0
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:
bringert
2004-07-22 11:12:27 +00:00
parent 2b1f64eb06
commit 541ef75fb4

View File

@@ -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