Bug 453925 - When the mouse is moved over the rsibreak tray icon, the remaining time is not displayed properly. It seems to be due to a <br> tag not being closed properly.
Summary: When the mouse is moved over the rsibreak tray icon, the remaining time is no...
Status: RESOLVED FIXED
Alias: None
Product: rsibreak
Classification: Applications
Component: general (other bugs)
Version First Reported In: 0.12.14
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-17 07:38 UTC by tntwiki
Modified: 2022-05-17 22:40 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
Screenshot,The terminal that is monitoring the messages of xfce4-panel, in the lower right corner, the mouse is moved to the tray of rsibreak, but the tray only shows an air bubble. (447.63 KB, image/png)
2022-05-17 07:38 UTC, tntwiki
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tntwiki 2022-05-17 07:38:35 UTC
Created attachment 148908 [details]
Screenshot,The terminal that is monitoring the messages of xfce4-panel, in the lower right corner, the mouse is moved to the tray of rsibreak, but the tray only shows an air bubble.

I encountered the problem that the next break time cannot be previewed through the tray icon normally. When the mouse moves to the tray icon of rsibreak, an air bubble will be displayed on the tray instead of the remaining time.

At the same time, xfce4-panel will keep reporting errors like "(wrapper-2.0:97797): Gtk-WARNING **: 14:52:48.669: Failed to set text '<b>RSIBreak</b>
<font color='#9b3e00'>&#9679;</font> There are 3 minutes and 54 seconds until the next recess<br><font color='#2f8200'>&#9679;</font> 48 minutes and 54 seconds to the next major recess' from markup due to error parsing markup: Error at line 2, character 181: The element "markup" has been closed, and the currently open element is "br"" message. So, it seems to be caused by the <br> tag not being properly enclosed, which is the need for <br/>.

The operating system used here is manjaro, the version of rsibreack is 0.12.4, and the version of xfce4-panel is 4.16.4

这边遇到了无法正常通过托盘图标预览下一次休息时间的问题,当鼠标移动到了rsibreak的托盘图标时,托盘上会显示一个空气泡,而不显示剩余时间。

同时,xfce4-panel会持续报错类似于"(wrapper-2.0:97797): Gtk-WARNING **: 14:52:48.669: Failed to set text '<b>RSIBreak</b>
<font color='#9b3e00'>&#9679;</font> 到下一次小课间休息还有 3 分 54 秒<br><font color='#2f8200'>&#9679;</font> 到下一次大课间休息还有 48 分 54 秒' from markup due to error parsing markup: 第 2 行第 181 个字符出错: 元素“markup”已经闭合,当前仍开放的元素是“br”"这样的消息。所以,似乎是由于<br>标签并没有正确封闭导致的,也就是需要<br/>。

此处所使用的操作系统为manjaro,rsibreack版本为0.12.4,xfce4-panel版本为4.16.4
Comment 1 Albert Astals Cid 2022-05-17 22:38:15 UTC
<br> is valid html and doesn't need to be closed since it's a single tag, but i'll change it to <br /> hope something else doesn't break because of that
Comment 2 Bug Janitor Service 2022-05-17 22:39:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/utilities/rsibreak/-/merge_requests/14
Comment 3 Albert Astals Cid 2022-05-17 22:40:45 UTC
Git commit a81354c41e3bcbca0da9a2e630d75495924dcaa2 by Albert Astals Cid.
Committed on 17/05/2022 at 22:39.
Pushed by aacid into branch 'master'.

Let's try to make xfce happy: <br> -> <br />

M  +1    -1    src/rsidock.cpp

https://invent.kde.org/utilities/rsibreak/commit/a81354c41e3bcbca0da9a2e630d75495924dcaa2