git.iko.soy/typeable/pandoc
on master help sign in
Rename manEscapes -> standardEscapes
commitbac25e82d3f588119eab4219322691c8a8fb0847 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 24 Oct 2018, 08:51 (8 years ago) parentf859162
2 files changed+5−5
src/Text/Pandoc/GroffChar.hs+3−3 src/Text/Pandoc/Writers/Groff.hs+2−2
src/Text/Pandoc/GroffChar.hs+3−3
@@ -31,15 +31,15 @@ Groff character escaping/unescaping.
3131-}
3232
3333module Text.Pandoc.GroffChar (
34− manEscapes
34+ standardEscapes
3535 , characterCodes
3636 , combiningAccents
3737 ) where
3838import Prelude
3939
4040-- | These are the escapes specifically mentioned in groff_man(7).
41−manEscapes :: [(Char, String)]
42−manEscapes =
41+standardEscapes :: [(Char, String)]
42+standardEscapes =
4343 [ ('\160', "\\ ")
4444 , ('\'', "\\[aq]")
4545 , ('‘', "\\[oq]")
src/Text/Pandoc/Writers/Groff.hs+2−2
@@ -47,7 +47,7 @@ import Text.Pandoc.Class (PandocMonad)
4747import Text.Pandoc.Definition
4848import Text.Pandoc.Pretty
4949import Text.Printf (printf)
50−import Text.Pandoc.GroffChar (manEscapes,
50+import Text.Pandoc.GroffChar (standardEscapes,
5151 characterCodes, combiningAccents)
5252
5353data WriterState = WriterState { stHasInlineMath :: Bool
@@ -87,7 +87,7 @@ combiningAccentsMap :: Map.Map Char String
8787combiningAccentsMap = Map.fromList combiningAccents
8888
8989essentialEscapes :: Map.Map Char String
90−essentialEscapes = Map.fromList manEscapes
90+essentialEscapes = Map.fromList standardEscapes
9191
9292-- | Escape special characters for groff.
9393escapeString :: EscapeMode -> String -> String