Skip to content

v4.1-beta.2 — `<br>` + Enter is one soft break, not a new paragraph

Pre-release
Pre-release

Choose a tag to compare

@dvejsada dvejsada released this 16 Oct 10:36
· 6 commits to master since this release
9324a79

A <br> at the end of a line no longer starts a new paragraph. Signature blocks and addresses written the way models usually write them now come out as one paragraph, without the style's paragraph spacing between the lines.

🩹 <br> + Enter is one soft break (#204)

Models write a signature block like this:

_______________<br>
ACME s.r.o.

The parser saw two lines and made two paragraphs, so the style's paragraph spacing (6 pt after Normal in the default template) appeared between the signature line and the company name. The <br> was then dropped, without any warning. In a placeholder in the middle of a sentence and in header_text / footer_text, the same input gave two line breaks instead of one.

A line ending in <br> now means what a line ending in two spaces always has: the next line continues the same paragraph.

You write You get
line<br> ⏎ next one paragraph, one line break
line<br> ⏎ blank line ⏎ next two paragraphs
line<br><br> ⏎ next one paragraph with an empty line

This holds in prose, quotes, <center> blocks, dynamic-template placeholders (whole-paragraph or mid-sentence) and header/footer text.

  • List items continue too. - Seller:<br> ⏎ ACME s.r.o. stays one item. Two trailing spaces now work inside list items as well. The tool description already promised that, but it did not work.
  • Nothing on the next line is swallowed. A list, heading, table, quote, --- or <!-- directive --> after a line-ending <br> is still that block.
  • A heading is still one line.

Check on upgrade

  • A line after a list item ending in <br> or two spaces now joins that item. Before, it became a separate Normal paragraph under the list. Put a blank line after the item if you want a separate paragraph.
  • Still not handled:
    • A table row ending in <br> (| 1 | 2 |<br>) is still not read as a row.
    • A date line (23. června 2026) right after a list item ending in <br> is read as the next list item. Escape the dot: 23\. června 2026.
docker pull georgx22/mcp-office-docs:v4.1-beta.2

Prerelease, so the image does not move latest.

Full changelog: v4.1-beta.1...v4.1-beta.2