#1129758 krusader: Shows <b> tags in search-result previews instead of rendering bold text

Package:
krusader
Source:
krusader
Description:
twin-panel (commander-style) file manager
Submitter:
Samuel Plavec
Date:
2026-03-05 16:01:02 UTC
Severity:
normal
#1129758#5
Date:
2026-03-05 16:00:00 UTC
From:
To:
Dear Maintainer,

I have found a bug in Krusader's search functionality, namely with the
file-content preview for search results, which is shown in the
"Results" tab when searching for files containing a string.

Normally, the searched-for substring is shown in bold font in the
preview. However, in specific cases, the substring is sometimes shown
wrapped in <b></b> tags instead. In certain edge-cases, a </qt> tag is
visible at the end of the preview, with a truncated <qt> tag (e.g.
"qt>" or "t>") being visible at the preview's beginning.

The following conditions need to be met simultaneously to invoke this bug:
- the searched-for substring is on a long line (tens of characters)
 which don't fit into the preview box
- the substring is located on a line with an odd line number
- the line which contains the substring is preceded by a blank line
- the line which contains the substring is not the last line
- the substring starts at the fourth character of the line

Regards,
Samuel Plavec