Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Last word of the line and first word of the next line are joined when using NewRichTextFromMarkdown #2647

Closed
lugu opened this issue Nov 15, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@lugu
Copy link
Contributor

lugu commented Nov 15, 2021

Describe the bug:

RichText widget resulting from parse markdown join the last word of a line with the subsequent first word of the next line.

To Reproduce:

Create a rich text widget from a markdown text which has several lines.

Screenshots:

markdown-demo

Example code:

package main

import (
        "fyne.io/fyne/v2/app"
        "fyne.io/fyne/v2/widget"
)

func main() {
        win := app.New().NewWindow("Markdown Demo")

        md := `
first line
second line
`
        content := widget.NewRichTextFromMarkdown(md)
        win.SetContent(content)
        win.ShowAndRun()
}

Device (please complete the following information):

  • OS: Linux
  • Version: ?
  • Go version: 1.5
  • Fyne version: 2.1
@lugu lugu added the unverified A bug that has been reported but not verified label Nov 15, 2021
@andydotxyz andydotxyz added bug Something isn't working and removed unverified A bug that has been reported but not verified labels Nov 15, 2021
@andydotxyz andydotxyz added this to the Fixes (v2.1.x) milestone Nov 15, 2021
@andydotxyz
Copy link
Member

Thanks, fixed in the upcoming v2.1.2 - you can test using release/v2.1.x branch

@lugu
Copy link
Contributor Author

lugu commented Nov 17, 2021

Works for me. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants