Issue Bug Closed

#17407get rid of clear.gif with space

Steffen Kamper 06/21/07, 15:06 updated 08/06/10, 13:23

Description

when using spaceBefore / spaceAfter in CE there is no chance to get rid of clear.gif

As this is in tslib_content:
if ($spaceBefore || $spaceAfter) {$content=$this->wrapSpace($content, $spaceBefore.’|’.$spaceAfter);}

it will wrapped with the clear.gif any time.

So there is no alternative way like Joey presents in newsgroup:

tt_content.stdWrap { ### spaceBefore ###
prepend = TEXT
prepend.field = spaceBefore
prepend.wrap =

prepend.if.isTrue.field = spaceBefore
### spaceAfter ###
append = TEXT
append.field = spaceAfter
append.wrap = <div style=“clear:both;height:|px;margin:0;font-size:0px;”>
append.if.isTrue.field = spaceAfter
### content.space ###
outerWrap.cObject = COA
outerWrap.cObject {
10 = TEXT
10 {
outerWrap =<div|>
value = {$content.space}
split {
token = |
cObjNum = 1
1.current = 1
1.noTrimWrap = | |px 0px|
}
noTrimWrap = | style=“margin:|;”|
}
20 = TEXT
20.value = |
}
}

This snippet works, but clear.gif is present also.

(issue imported from #M5835)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.