RichText widget put extraneous space before last exclamation point in Markdown content #5530
Open
2 tasks done
Labels
unverified
A bug that has been reported but not verified
Checklist
Describe the bug
My code is populating a RichText widget with Markdown text. When the content contains exclamation points, it displays an extra space before the last exclamation point.
How to reproduce
See the example code and output below.
Screenshots
No response
Example code
This code snippet:
produces this output:
The first TextSegment in the Markdown case has an extra space after
Hi
that wasn't in the input text. The space is also shown in the rendered widget.Fyne version
2.5.4
Go compiler version
go1.23.4 darwin/arm64
Operating system and version
MacOS Sequoia 15.3
Additional Information
A user has also reported the issue on Linux.
I'm new to Fyne, so it's possible that I'm doing something wrong.
My code is based on Fybro and the code in question is unchanged. See here https://github.com/andydotxyz/fybro/blob/main/ui_message.go#L113
The text was updated successfully, but these errors were encountered: