Skip to content

When reading, post formatting using break tags <br/> is ignored. #2437

@rosiel

Description

@rosiel

I read a poetry blog. The posts are formatted using break tags within paragraphs, for example:

<p>
This is line 1
<br>
This is line 2
<br>
This is line 3
...
</p>

But in the reader, most break tags get ignored. Here's a screenshot:
broken

This is caused by css in the base-theme that ignores all consecutive break tags after the second. Unfortunately, in the html example above, those break tags are considered consecutive even though there's text between them. According to the commit message, this style bit was added for sites like lemonde.fr, which (5 years ago) put extraneous <br/> tags in their posts.

I can fix this on my own installation by installing the Custom CSS plugin and adding the following CSS:

br + br + br { 
   display:inline; 
}

Which results in:
fixed

Is this bit of style override still necessary? I tried loading lemonde.fr feeds and didn't find any extraneous <br/> tags. It's kind of a custom hack for a particular poorly-formatted feed, and causes a bug when breaks are used meaningfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feed problem 🗞️Feeds that have issues while loading/reading in FreshRSS

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions