When there is no content in the body of a node that is using the line break filter, the filter adds a
<br />
to the node content. This adds undesired space that cannot be removed even with css (it is pushing down some items that come after the body).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | filter_no_break_on_empty.patch.txt | 712 bytes | heine |
Comments
Comment #1
karens commentedChanging status, meant to do this the first time :-)
Comment #2
yvelle commentedThe problem goes away when i comment out:
$format = filter_resolve_format($format);
from:
function check_markup(
But not when you comment out any other line. I'm going to keep playing with this to see what I can find.
Comment #3
heine commentedAdded a check for empty input.
Comment #4
heine commenteddoesn't even solve the issue
Comment #5
ricabrantes commentedBug active?? moving d7.x
Comment #6
sunComment #7
sunI can't replicate this bug in HEAD.
Comment #8
jaysadie commentedI'm having the same problem. I'm using CKEditor, so not sure if that has anything to do with it.
Comment #9
heldermarketing commentedI have an almost similair issue.
When I add 1 break in the content. There are 2 breaks being outputted into the content. When I look into the node/block content in the database it only has 1 break tag. So the problem must have to do something with the filters or preprocessors.
This issue is on Drupal 6. Probably similair problem as on 7.