From ccd4f13a4accf0366072a93b2843706e60a89a5e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 8 Aug 2017 13:16:45 -0700 Subject: Writers.Shared.unsmartify: undo literal double curly quotes. Previously we left these. --- src/Text/Pandoc/Writers/Shared.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/Shared.hs b/src/Text/Pandoc/Writers/Shared.hs index 3f612f40a..8369bc09c 100644 --- a/src/Text/Pandoc/Writers/Shared.hs +++ b/src/Text/Pandoc/Writers/Shared.hs @@ -214,6 +214,9 @@ unsmartify opts ('\8211':xs) unsmartify opts ('\8212':xs) | isEnabled Ext_old_dashes opts = "--" ++ unsmartify opts xs | otherwise = "---" ++ unsmartify opts xs +unsmartify opts ('\8220':xs) = '"' : unsmartify opts xs +unsmartify opts ('\8221':xs) = '"' : unsmartify opts xs +unsmartify opts ('\8216':xs) = '\'' : unsmartify opts xs unsmartify opts (x:xs) = x : unsmartify opts xs unsmartify _ [] = [] -- cgit v1.2.3