@@ -41,7 +41,7 @@ import Data.Time.Clock.POSIX
4141import Data.Time.Clock
4242import Data.Time.Format
4343import System.Environment
44−import System.Locale
44+import Text.Pandoc.Compat.Locale (defaultTimeLocale)
4545import Text.Pandoc.Definition
4646import Text.Pandoc.Generic
4747import Text.Pandoc.ImageSize
@@ -1060,7 +1060,7 @@ parseXml refArchive distArchive relpath =
10601060fitToPage :: (Integer, Integer) -> Integer -> (Integer, Integer)
10611061fitToPage (x, y) pageWidth
10621062 -- Fixes width to the page width and scales the height
1063− | x > pageWidth =
1064− (pageWidth, round $
1063+ | x > pageWidth =
1064+ (pageWidth, round $
10651065 ((fromIntegral pageWidth) / ((fromIntegral :: Integer -> Double) x)) * (fromIntegral y))
10661066 | otherwise = (x, y)