git.iko.soy/typeable/pandoc
on master help sign in
T.P.Writers.Groff - don't export escapeChar.
commit8b204dda775f0767056fefe5b18ac4a064b914c4 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 22 Oct 2018, 23:46 (8 years ago) parent7eea5c6
2 files changed+1−2
src/Text/Pandoc/Writers/Groff.hs−1 src/Text/Pandoc/Writers/Ms.hs+1−1
src/Text/Pandoc/Writers/Groff.hs−1
@@ -34,7 +34,6 @@ module Text.Pandoc.Writers.Groff (
3434 , defaultWriterState
3535 , MS
3636 , Note
37− , escapeChar
3837 , escapeString
3938 , escapeCode
4039 , withFontFeature
src/Text/Pandoc/Writers/Ms.hs+1−1
@@ -125,7 +125,7 @@ toSmallCaps opts (c:cs)
125125 "\\s0" ++ toSmallCaps opts rest
126126 | isUpper c = let (uppers,rest) = span isUpper (c:cs)
127127 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
129129
130130-- We split inline lists into sentences, and print one sentence per
131131-- line. groff/troff treats the line-ending period differently.