Files
pandoc/test/rtf/list_multiparagraph.native
John MacFarlane 9312f1da1b RTF reader: support multi-paragraph list items.
The reader treated every list paragraph as a new list item, so a list
item containing several paragraphs was split into one item per
paragraph.  In the RTF list model a new item is marked by a
`{\listtext ...}` destination group; a list paragraph lacking one is a
continuation of the current item.

Track whether a `{\listtext}` group was seen (`sListText`) and, in
`emitBlocks`, append a continuation paragraph (no `\listtext`) to the
current item rather than starting a new one.

Adds a `list_multiparagraph` reader test.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-09 00:17:20 +02:00

26 lines
524 B
Plaintext

Pandoc
Meta { unMeta = fromList [] }
[ BulletList
[ [ Para
[ Str "First"
, Space
, Str "item,"
, Space
, Str "paragraph"
, Space
, Str "one."
]
, Para
[ Str "First"
, Space
, Str "item,"
, Space
, Str "paragraph"
, Space
, Str "two."
]
]
, [ Para [ Str "Second" , Space , Str "item." ] ]
]
]