File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 66{-# LANGUAGE ScopedTypeVariables #-}
77{-# LANGUAGE TypeApplications #-}
88{-# LANGUAGE ViewPatterns #-}
9+ {-# LANGUAGE CPP #-}
910{- |
1011 Module : Text.Pandoc.Writers.HTML
1112 Copyright : Copyright (C) 2006-2024 John MacFarlane
@@ -367,7 +368,13 @@ pandocToHtml opts (Pandoc meta blocks) = do
367368 (" extends" , (camelCaseToHyphenated $ tshow num)),
368369 (" prefix" , case del of
369370 OneParen -> " "
370- TwoParens -> " (" ),
371+ TwoParens -> " ("
372+ #if !MIN_VERSION_GLASGOW_HASKELL(9,0,0,0)
373+ -- Older versions of GHC don't know this match is redundant. Drop this
374+ -- when Pandoc drops GHC 8.10 testing.
375+ _ -> " "
376+ #endif
377+ ),
371378 (" suffix" , " )" ) ]
372379 let context :: Context Text
373380 context = (if stHighlighting st
You can’t perform that action at this time.
0 commit comments