https://bugs.kde.org/show_bug.cgi?id=509784

            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=185153&action=edit
In the HTML file, subsequent lines lack styling.

SUMMARY
When consecutive lines share the same style, the original implementation only
applied a <span> to the first line, causing later lines to be rendered without
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. 

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

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to