Skip to content

HandoutFormatter 1.0.1: fix horizontal rules being stripped, fix help handout avatar - #2358

Merged
Alicekb merged 3 commits into
Roll20:masterfrom
keithcurtis1:handoutFormatter-1.0.1
Oct 28, 2026
Merged

Alicekb merged 3 commits into
Roll20:masterfrom
keithcurtis1:handoutFormatter-1.0.1

Conversation

@keithcurtis1

@keithcurtis1 keithcurtis1 commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

This fixes two bugs:

Horizontal rules (<hr>) were being silently deleted from Notes/GM Notes any time a style was applied or removed, because <hr> wasn’t in the script’s list of tags it keeps when cleaning content. Added it, and made sure it closes out any open paragraph or heading first instead of ending up nested inside one.
The help handout’s icon was inlined as an at the top of its Notes text instead of being set as the handout’s own avatar. Fixed to use the avatar property, same as it should have from the start.

Tested against a handout with a horizontal rule between two paragraphs — applied a style and confirmed the rule and both paragraphs survive, then ran Remove Styling and confirmed the same. Also confirmed the help handout no longer has the image inlined in its text and its avatar is set correctly.

Updated version to 1.0.1 and fixed issues with horizontal rules and help handout icon.
Updated version and description for HandoutFormatter.
@Alicekb
Alicekb merged commit bbfa9bf into Roll20:master Oct 28, 2026
2 checks passed
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.

2 participants