aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2010-12-22 00:22:28 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2010-12-22 00:22:28 -0800
commit369502bbb4b15dd8636ecd1af1096c3f802ead0e (patch)
treedee6a21b5474c0fa9dab4d27eefcad2c4bd17443 /src/Text/Pandoc
parentfd07db16e901720f1c5a9574786fdb6b097311cf (diff)
downloadpandoc-369502bbb4b15dd8636ecd1af1096c3f802ead0e.tar.gz
Pretty: Added quote, doubleQuote.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Pretty.hs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Pretty.hs b/src/Text/Pandoc/Pretty.hs
index c6ba6fb01..54d65af6f 100644
--- a/src/Text/Pandoc/Pretty.hs
+++ b/src/Text/Pandoc/Pretty.hs
@@ -63,6 +63,8 @@ module Text.Pandoc.Pretty (
, braces
, brackets
, parens
+ , quotes
+ , doubleQuotes
)
where
@@ -417,3 +419,11 @@ brackets = inside (char '[') (char ']')
-- | Puts a 'Doc' in parentheses.
parens :: Doc -> Doc
parens = inside (char '(') (char ')')
+
+-- | Wraps a 'Doc' in single quotes.
+quotes :: Doc -> Doc
+quotes = inside (char '\'') (char '\'')
+
+-- | Wraps a 'Doc' in double quotes.
+doubleQuotes :: Doc -> Doc
+doubleQuotes = inside (char '"') (char '"')