Skip to content

Text that is not empty on the next line of a hyperlink in a rich text widget cannot be wrapped correctly #4340

Closed
@qiwentaidi

Description

Checklist

  • I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
  • This issue only relates to a single bug. I will open new issues for any other problems.

Describe the bug

1、Text that is not empty on the next line of a hyperlink in a rich text widget cannot be wrapped correctly
2、Unable to recognize HTML code

How to reproduce

use example code

Screenshots

image

Example code

package main

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

const info = `<h1 align="center">test title</h1>
<p align="center">hello<br/><br/></p>

> 123456789
111111
1111

[google](https://google.com/)





can't wrap
`

func main() {
	a := app.New()
	w := a.NewWindow("Test RichText")
	rt := widget.NewRichTextFromMarkdown(info)
	w.SetContent(rt)
	w.ShowAndRun()
}

Fyne version

fyne.io/fyne/v2 v2.4.1-rc1.0.20231020171735-2921c115f4cc

Go compiler version

go1.20.1 windows/amd64

Operating system and version

windows11

Additional Information

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    unverifiedA bug that has been reported but not verified

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions