mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-28 17:20:47 +08:00
9312f1da1b
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>
13 lines
610 B
Plaintext
13 lines
610 B
Plaintext
{\rtf1\ansi\ansicpg1252
|
|
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
|
|
{\colortbl;\red0\green0\blue0;}
|
|
{\*\listtable{\list\listtemplateid1{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelindent0{\leveltext\'01\uc0\u8226 ;}{\levelnumbers;}\fi-360\li720\lin720 }{\listname ;}\listid1}}
|
|
{\*\listoverridetable{\listoverride\listid1\listoverridecount0\ls1}}
|
|
\pard\li720\fi-360
|
|
\ls1\ilvl0 {\listtext\tab \u8226 \tab}First item, paragraph one.\par
|
|
\pard\li720\fi-360
|
|
\ls1\ilvl0 First item, paragraph two.\par
|
|
\pard\li720\fi-360
|
|
\ls1\ilvl0 {\listtext\tab \u8226 \tab}Second item.\par
|
|
}
|