[frameworks-syndication] [Bug 436288] New: Wrong indentation in pre-formatted html content (5.78 regression)

Alexander Miller bugzilla_noreply at kde.org
Wed Apr 28 02:20:23 BST 2021


            Bug ID: 436288
           Summary: Wrong indentation in pre-formatted html content (5.78
           Product: frameworks-syndication
           Version: 5.80.0
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kdepim-bugs at kde.org
          Reporter: alex.miller at gmx.de
  Target Milestone: ---

Since commit 9a54df8b ("Port away from deprecated QXmlInputSource"),
syndication changes the indentation of lines that start with a tag in the html
content of a feed item. That doesn't matter in most places, but it's a problem
where whitespace should be preserved, like in a <pre> block or a tag with

As a result, after upgrading from frameworks 5.77 to 5.80, newly fetched
articles of a feed that regularly uses pre-formatted content with additional
markup are shown with wrongly indented lines in akregator, while old, archived
articles still render correctly. Reverting the commit mentioned above fixes the

A small made-up example to illustrate the problem:
If an article contains
line 1
<b>line</b> 2
line 3
then several spaces will be added in front of line 2, which is wrong.

The offending commit should be reverted and then the deprecated method may be
replaced with a different solution that doesn't cause regressions.

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

More information about the Kdepim-bugs mailing list