[TYPO3] avoid spacer-gif and br

Ilaria De Marinis ilaria.demarinis at caspur.it
Fri Aug 10 09:55:58 CEST 2007


I commented these two lines in 
typo3/sysext/cms/tslib/class.tslib_content.php

/function wrapSpace($content, $wrap) {
        $result = $content;
        if (trim($wrap))    {
            $wrapArray = explode('|',$wrap);
            $wrapBefore = intval($wrapArray[0]);
            $wrapAfter = intval($wrapArray[1]);
            if ($wrapBefore)    {/
*                #ILARIA$result = '<img 
src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1" 
height="'.$wrapBefore.'"'.$this->getBorderAttr('* border="0"').' 
class="spacer-gif" alt="" title="" /><br />'.$result;
 /           }
            if ($wrapAfter) {/
*                #ILARIA$result.='<img 
src="'.$GLOBALS['TSFE']->absRefPrefix.'clear.gif" width="1" 
height="'.$wrapAfter.'"'.$this->getBorderAttr('* border="0"').' 
class="spacer-gif" alt="" title="" /><br />';
            /}
        }
        return $result;
    }/
I think I won't need anytime these two tags.
Hope help someone

Thank you very much

Ilaria

Dmitry Dulepov [typo3] wrote:
> Ilaria De Marinis wrote:
>   
>> I am trying to understand when typo3 insert this html code:
>> <img src="clear.gif" width="1" height="10" border="0" class="spacer-gif" 
>> alt="" title="" /><br />
>>
>> In my site a page contains this two tags content many times.
>>
>> I don't use a default template and it is impossible for me to create a 
>> good css stylesheet with these code occurrences.
>>
>> Can I avoid typo3 generate this code?
>>     
>
> Use TS Object browser (in Web>Template) to search for "clear.gif"). You 
> should know what to do next.
>
>   

-- 
------------------------------------------------
Ilaria De Marinis 
Settore Automazione Biblioteche
Phone: +3906-44486052
CASPUR - Via dei Tizii ,6 - 00185 Roma
e-mail: demarinis at caspur.it
------------------------------------------------



More information about the TYPO3-english mailing list