synzen/MonitoRSS

Excess newline due to formatting

m417z opened this issue · 3 comments

m417z commented

Describe the bug

An excess newline is added in some cases.

For example, feed content:

<p><strong>Before</strong>:</p>
<p><img src="https://raw.githubusercontent.com/...png" alt="Before" /></p>
<p><strong>After</strong>:</p>
<p><img src="https://raw.githubusercontent.com/...png" alt="After" /></p>

Result:

image

To Reproduce

Steps to reproduce the behavior:

  1. Have a feed with content similar to the above
  2. Observe that an unnecessary newline is added

Branch (please specify one):

public bot

synzen commented

Thanks for the report. Just to be abundantly clear on expectations, what is the exact output that you're looking for in this case?

m417z commented

I expect this:
<p><strong>Before</strong>:</p>

To become:

Before:

And not:

Before
:

synzen commented

Thanks for clarifying. I believe this should now be fixed in ffa503c