@@ -33,7 +33,6 @@ module Text.Pandoc.Shared (
33 splitByIndices,
33 splitByIndices,
34 substitute,
34 substitute,
35 -- * Text processing
35 -- * Text processing
37 joinWithSep,
36 joinWithSep,
38 tabsToSpaces,
37 tabsToSpaces,
39 backslashEscape,
38 backslashEscape,
@@ -220,13 +219,6 @@ tabsInLine num tabstop (c:cs) =
220 else nextnumraw in
219 else nextnumraw in
221 replacement ++ (tabsInLine nextnum tabstop cs)
220 replacement ++ (tabsInLine nextnum tabstop cs)
223−-- | Substitute string for every occurrence of regular expression.
224−gsub :: String -- ^ Regular expression (as string) to substitute for
225− -> String -- ^ String to substitute for the regex
226− -> String -- ^ String to be substituted in
228−gsub regex replacement str = subRegex (mkRegex regex) str replacement
230-- | Escape designated characters with backslash.
222-- | Escape designated characters with backslash.
231backslashEscape :: [Char] -- ^ list of special characters to escape
223backslashEscape :: [Char] -- ^ list of special characters to escape
232 -> String -- ^ string input
224 -> String -- ^ string input