Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Version up

* parentheses are now escaped for the benefit of lhs2tex.
  • Loading branch information...
commit b4f5612616bdf534405009555a11e7192973635e 1 parent 3c46e59
@spockz spockz authored
Showing with 5 additions and 2 deletions.
  1. +1 −1  lhs2TeX-hl.cabal
  2. +4 −1 src/Language/LaTeX.hs
View
2  lhs2TeX-hl.cabal
@@ -1,5 +1,5 @@
Name: lhs2TeX-hl
-Version: 0.1.4.5
+Version: 0.1.4.6
Cabal-Version: >= 1.6
License: MIT
Author: Alessandro Vermeulen <me@alessandrovermeulen.me>
View
5 src/Language/LaTeX.hs
@@ -52,8 +52,11 @@ makeLatexSafe = replace ">" "\\textgreater"
. replace "\\" "\\lambda " -- argh
+makeLHS2TexSafe = replace "(" "\"("
+ . replace ")" ")\""
+
char :: Integer -> String
char n = "\\ \\char''" ++ show n ++"\\ "
dp :: String -> (String, String)
-dp a = (a, (markup . makeLatexSafe) a)
+dp a = (makeLHS2TexSafe a, (markup . makeLatexSafe) a)
Please sign in to comment.
Something went wrong with that request. Please try again.