[konsole] [Bug 509784] New: Saving output as HTML cause multi-line text loses style

[email protected] Mon, 22 Sep 2025 14:13:43 +0000
Newsgroups gmane.comp.kde.devel.konsole
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=3D509784

            Bug ID: 509784
           Summary: Saving output as HTML cause multi-line text loses
                    style
    Classification: Applications
           Product: konsole
      Version First 25.04.2
       Reported In:
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

Created attachment 185153
  --> https://bugs.kde.org/attachment.cgi?id=3D185153&action=3Dedit
In the HTML file, subsequent lines lack styling.

SUMMARY
When consecutive lines share the same style, the original implementation on=
ly
applied a <span> to the first line, causing later lines to be rendered with=
out
the intended style.

STEPS TO REPRODUCE
1. Use the following command to print a long blue line in Konsole:
  ```
  for i in {1..500}; do echo -ne "\e[34m1\e[0m"; done
  ```
2. Use "Save Output As" to export the output as an HTML file.
3. Open the exported HTML file.=20

OBSERVED RESULT
In the HTML file, only the first line is blue. Subsequent lines lack stylin=
g.

EXPECTED RESULT
All lines have blue style.

SOFTWARE/OS VERSIONS
Linux: Debian GNU/Linux 13
KDE Plasma Version: 6.3.6
KDE Frameworks Version: 6.13.0
Qt Version: 6.8.2

--=20
You are receiving this mail because:
You are the assignee for the bug.=