Skip to content

Conversation

@Ruzihm
Copy link
Contributor

@Ruzihm Ruzihm commented Jan 3, 2026

Currently in maptext html parsing, if a self-closing tag such as <br> is written using the self-closing slash without a space in between: <br/> the parser breaks:

[ERRO] opendream.html_parser: Invalid closing tag </span>, expected </br/>

To reproduce this, go into (goon's) cogmap2 and visit the QM office. your client will get spammed by the above message when the market shift status display is visible.

This MR fixes this particular parsing issue by checking for a trailing / character at the end of the tag name or last parameter.

It also makes a change to how <br> tags specifically are handled. Instead of pushing encountered <br> tags as markup nodes, they are instead converted into newlines and appended to the text of the currently active tag. This results in a slightly more correct rendering:

image

@boring-cyborg boring-cyborg bot added the Client Involves the OpenDream client label Jan 3, 2026
@github-actions github-actions bot added the size/S label Jan 3, 2026
@Ruzihm Ruzihm changed the title Fixes inadequate self-closing check Fixes self-closing html tag check, interprets br as newline Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Client Involves the OpenDream client size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant