git.iko.soy/typeable/pandoc
on master help sign in
T.P.Writers.Groff - don't export escapeChar.
8b204ddJohn MacFarlane
src/Text/Pandoc/Writers/Groff.hs−1
@@ -34,7 +34,6 @@ module Text.Pandoc.Writers.Groff (
34 , defaultWriterState
34 , defaultWriterState
35 , MS
35 , MS
36 , Note
36 , Note
37− , escapeChar
38 , escapeString
37 , escapeString
39 , escapeCode
38 , escapeCode
40 , withFontFeature
39 , withFontFeature
src/Text/Pandoc/Writers/Ms.hs+1−1
@@ -125,7 +125,7 @@ toSmallCaps opts (c:cs)
125 "\\s0" ++ toSmallCaps opts rest
125 "\\s0" ++ toSmallCaps opts rest
126 | isUpper c = let (uppers,rest) = span isUpper (c:cs)
126 | isUpper c = let (uppers,rest) = span isUpper (c:cs)
127 in escString opts uppers ++ toSmallCaps opts rest
127 in escString opts uppers ++ toSmallCaps opts rest
128− | otherwise = escapeChar (writerPreferAscii opts) c ++ toSmallCaps opts cs
128+ | otherwise = escapeString (writerPreferAscii opts) [c] ++ toSmallCaps opts cs
129
129
130-- We split inline lists into sentences, and print one sentence per
130-- We split inline lists into sentences, and print one sentence per
131-- line. groff/troff treats the line-ending period differently.
131-- line. groff/troff treats the line-ending period differently.