TEI writer: Use height instead of depth for images.
Closes #4331.
commit8bdbdc24deba5c32950d781b533d132100a77b26
authorJohn MacFarlane <jgm@berkeley.edu>
dateThu 1 Feb 2018, 11:38 (9 years ago)
parentc501942
src/Text/Pandoc/Writers/TEI.hs+1−1
@@ -145,7 +145,7 @@ imageToTEI :: PandocMonad m => WriterOptions -> Attr -> String -> m Doc
145145imageToTEI _ attr src = return $ selfClosingTag "graphic" $
146146 ("url", src) : idAndRole attr ++ dims
147147 where
148− dims = go Width "width" ++ go Height "depth"
148+ dims = go Width "width" ++ go Height "height"
149149 go dir dstr = case dimension dir attr of
150150 Just a -> [(dstr, show a)]
151151 Nothing -> []