mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 08:25:52 +00:00
Docx reader: combine inlines properly in dropcaps.
Make sure that adjacent inlines are combined properly in dropcaps. This updates the test results as well.
This commit is contained in:
@@ -462,7 +462,7 @@ bodyPartToBlocks (Paragraph pPr parparts)
|
||||
bodyPartToBlocks (Paragraph pPr parparts) = do
|
||||
ils <- parPartsToInlines parparts >>= (return . normalizeSpaces)
|
||||
dropIls <- gets docxDropCap
|
||||
let ils' = dropIls ++ ils
|
||||
let ils' = reduceList $ dropIls ++ ils
|
||||
if dropCap pPr
|
||||
then do modify $ \s -> s { docxDropCap = ils' }
|
||||
return []
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
[Para [Str "D",Str "rop",Space,Str "cap."]
|
||||
[Para [Str "Drop",Space,Str "cap."]
|
||||
,Para [Str "Next",Space,Str "paragraph."]
|
||||
,Para [Str "D",Str "rop",Space,Str "cap",Space,Str "in",Space,Str "margin."]
|
||||
,Para [Str "Drop",Space,Str "cap",Space,Str "in",Space,Str "margin."]
|
||||
,Para [Str "Drop",Space,Str "cap",Space,Str "(not",Space,Str "really)."]]
|
||||
|
||||
Reference in New Issue
Block a user