@@ -59,7 +59,7 @@ module Text.Pandoc.Pretty (
62− , enclosed
62+ , inside
64 , brackets
64 , brackets
@@ -334,7 +334,7 @@ blankline :: Doc
334blankline = Doc $ singleton BlankLine
334blankline = Doc $ singleton BlankLine
336-- | Uses the specified string as a prefix for every line of
336-- | Uses the specified string as a prefix for every line of
337−-- the enclosed document (except the first, if not at the beginning
337+-- the inside document (except the first, if not at the beginning
338-- of the line).
338-- of the line).
339prefixed :: String -> Doc -> Doc
339prefixed :: String -> Doc -> Doc
340prefixed pref doc = Doc $ singleton $ Prefixed pref doc
340prefixed pref doc = Doc $ singleton $ Prefixed pref doc
@@ -398,18 +398,18 @@ chop n cs = case break (=='\n') cs of
398 where len = length xs
398 where len = length xs
400-- | Encloses a 'Doc' inside a start and end 'Doc'.
400-- | Encloses a 'Doc' inside a start and end 'Doc'.
401−enclosed :: Doc -> Doc -> Doc -> Doc
401+inside :: Doc -> Doc -> Doc -> Doc
402−enclosed start end contents =
402+inside start end contents =
403 start <> contents <> end
403 start <> contents <> end
405-- | Puts a 'Doc' in curly braces.
405-- | Puts a 'Doc' in curly braces.
406braces :: Doc -> Doc
406braces :: Doc -> Doc
407−braces = enclosed (char '{') (char '}')
407+braces = inside (char '{') (char '}')
409-- | Puts a 'Doc' in square brackets.
409-- | Puts a 'Doc' in square brackets.
410brackets :: Doc -> Doc
410brackets :: Doc -> Doc
411−brackets = enclosed (char '[') (char ']')
411+brackets = inside (char '[') (char ']')
413-- | Puts a 'Doc' in parentheses.
413-- | Puts a 'Doc' in parentheses.
414parens :: Doc -> Doc
414parens :: Doc -> Doc
415−parens = enclosed (char '(') (char ')')
415+parens = inside (char '(') (char ')')