aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2019-05-25 18:26:21 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2019-05-25 18:36:56 +0300
commit751427745417c7702a1546b1368db297a44b21e0 (patch)
treeb004ea65224013ce0c448ccef4373960dddcea39 /src
parent19f9eed0bb378dfd488265ef6946492113027cea (diff)
downloadpandoc-751427745417c7702a1546b1368db297a44b21e0.tar.gz
HTML reader: trim definition list terms
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/HTML.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/HTML.hs b/src/Text/Pandoc/Readers/HTML.hs
index dfc31f7af..c1478ebc4 100644
--- a/src/Text/Pandoc/Readers/HTML.hs
+++ b/src/Text/Pandoc/Readers/HTML.hs
@@ -336,7 +336,7 @@ pDefListItem = try $ do
terms <- many1 (try $ skipMany nonItem >> pInTags "dt" inline)
defs <- many1 (try $ skipMany nonItem >> pInTags "dd" block)
skipMany nonItem
- let term = foldl1 (\x y -> x <> B.linebreak <> y) terms
+ let term = foldl1 (\x y -> x <> B.linebreak <> y) $ map trimInlines terms
return (term, map (fixPlains True) defs)
fixPlains :: Bool -> Blocks -> Blocks