lnreader icon indicating copy to clipboard operation
lnreader copied to clipboard

Improve "Remove extra paragraph spacing" feature

Open Palloxin opened this issue 1 year ago • 3 comments

repost of #1164 due to conflicts (related code moved to another file) Currently, it just removes all <br>. With this change you could: -remove excessive <br> -remove some ~~zero-width spaces and~~ &nbsp; (I found a novel that put them in a p to simulate an extra empty paragraph). -remove a br after the end of a p. It's just extra space. -remove a br present right before the end of a p.

EDIT: the feature code has regex chaining now.

Palloxin avatar Aug 11 '24 17:08 Palloxin

<br> <p class="haha"> failed this test

nyagami avatar Aug 12 '24 14:08 nyagami

Double br exception:

Palloxin avatar Sep 04 '24 20:09 Palloxin

I think it's ready now EDIT: now it really is.

Palloxin avatar Sep 05 '24 07:09 Palloxin