Skip to content

Fix list continuation if non-list item between.#18779

Merged
Mati365 merged 1 commit intomasterfrom
ck/18015
Jun 30, 2025
Merged

Fix list continuation if non-list item between.#18779
Mati365 merged 1 commit intomasterfrom
ck/18015

Conversation

@Mati365
Copy link
Copy Markdown
Member

@Mati365 Mati365 commented Jun 30, 2025

Suggested merge commit message (convention)

Fix (list): No longer merge separate lists pasted from Microsoft Office into a single list. Closes #18015

Additional information

This PR fixes list continuation for given clipboard content:

<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word"
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"
xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=utf-8">
</head>

<body lang=EN-US style='tab-interval:.5in;word-wrap:break-word'>

<ul style='margin-top:0in' type=disc>
 <li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'><span
     style='font-size:11.0pt;line-height:110%'>One<o:p></o:p></span></li>
</ul>

<p class=MsoNormal><span style='font-size:11.0pt;line-height:110%'>Some text<o:p></o:p></span></p>

<ul style='margin-top:0in' type=disc>
 <li class=MsoListParagraph style='margin-left:0in;mso-list:l0 level1 lfo1'><span
     style='font-size:11.0pt;line-height:110%'>One<o:p></o:p></span></li>
</ul>

</body>

</html>

It's also reproducible in larger document:

input.zip

Before

obraz

After

obraz

@Mati365 Mati365 merged commit aa8ad88 into master Jun 30, 2025
10 checks passed
@Mati365 Mati365 deleted the ck/18015 branch June 30, 2025 13:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Separate lists pasted from Microsoft Office merge into a single list / Faulty list continuation detection

2 participants