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

Greater-than and ampersand sign displayed as > and & in Log Message of Processing #37934

Closed
jfbourdon opened this issue Jul 23, 2020 · 0 comments · Fixed by #38822
Closed
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@jfbourdon
Copy link
Contributor

Describe the bug
The sign > (greater-than) and ampersand & are displayed with their HTML equivalent &gt; and &amp; in the Log panel of a custom processing tool, but similar symbols like < ≤ ≥ are displayed correctly.

How to Reproduce

In the def processAlgorithm(self, parameters, context, feedback): of a custom processing tool, add the lines:

feedback.pushInfo(">")
feedback.pushInfo(u"\u003E")
feedback.pushInfo("&")
feedback.pushInfo("<")
feedback.pushInfo("& > < ≤ ≥")

The first two lines will show &gt; and the third &amp;, but the last two will display the characters correctly.

QGIS and OS versions
QGIS 3.12.2-București
QGIS code revision 8a1fb33
Compiled against Qt 5.11.2
Windows 10 (10.0)

@jfbourdon jfbourdon added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Jul 23, 2020
@pblottiere pblottiere self-assigned this Sep 16, 2020
pblottiere added a commit to pblottiere/QGIS that referenced this issue Sep 16, 2020
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
2 participants