Commits

Tobias Dammers committed 7ea9ae9

Bumped version

  • Participants
  • Parent commits 9a2e837
  • Tags 0.10.0.3

Comments (0)

Files changed (3)

File CommandArgs.hs

 deriving instance Data WrapMode
 deriving instance Typeable WrapMode
 
-programVersion = "0.10.0.2"
+programVersion = "0.10.0.3"
 
 data OutputFormat = OutputPHP | OutputJavascript | RunInterpreted
                   deriving (Show, Data, Typeable)

File Text/HPaco/Writers/PHP.hs

 
 singleQuoteString :: String -> String
 singleQuoteString str =
-    "'" ++ escape str ++ "'"
+    "\"" ++ escape str ++ "\""
     where
-        escapeChar '\'' = "\\'"
-        escapeChar '\n' = "' . \"\\n\" . '"
-        escapeChar '\t' = "' . \"\\t\" . '"
-        escapeChar '\r' = "' . \"\\r\" . '"
+        escapeChar '\"' = "\\\""
+        escapeChar '\n' = "\\n"
+        escapeChar '\t' = "\\t"
+        escapeChar '\r' = "\\r"
+        escapeChar '$' = "\\$"
         escapeChar x = [x]
         escape = concat . map escapeChar
 name:                hpaco
-version:             0.10.0.2
+version:             0.10.0.3
 synopsis:            Modular template compiler
 -- description:         
 homepage:            https://bitbucket.org/tdammers/hpaco