Kudo's to Arthur Bogaart who fixed it :)
Jasha

2009/9/25 Slobodan Bogdanovic <[email protected]>

> Thank you Jasha,
>
> empty paragraphs solved the problem.
>
> Best regards,
> Slobodan
>
>
> Jasha Joachimsthal wrote:
>
>> The htmlcleaner has been modified to optionally keep empty paragraphs. The
>> comment in the config is:
>>    <!-- Sometimes you want to allow certain block elements with a single
>> whitespace character.
>>         For example, Xinha creates a <p>&nbsp;</p> when the user inserts a
>> blank line. To make
>>         it even more complicated, the non-breaking space inside the
>> paragraph element will be replaced
>>         with a regular space by Xinha when the form is submitted, which
>> renders the paragraph as invisible
>>         in the browser. Therefor you can configure the Htmlcleaner to
>> force
>> the single whitespace character
>>         to be a non-breaking space.
>>
>>         This feature is available in version 1.01.04 from the HtmlCleaner.
>>
>>         Example configuration:
>>
>>         <allowed-single-whitspace-elements>
>>             <element name="p" forceNonBreakingSpace="true" />
>>         </allowed-single-whitspace-elements>
>>         -->
>>
>> Jasha Joachimsthal
>>
>> [email protected] - [email protected]
>>
>> www.onehippo.com
>> Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466
>> San Francisco - Hippo USA Inc. 185 H Street, suite B, Petaluma CA 94952 +1
>> (707) 7734646
>>
>>
>>
>>
>>
>>
>>
>>
>> 2009/9/24 shane smith <[email protected]>
>>
>>
>>
>>> Dennis Dam wrote:
>>>
>>>
>>>
>>>> Hi Slobodan,
>>>>
>>>> I reviewed the htmlcleaner code concerning the cleanup of BRs, and
>>>> concluded
>>>> that the htmlcleaner does indeed clean up "stand alone" BR elements, and
>>>> other empty elements (e.g. empty <p> elements, or a <p> element with
>>>> only
>>>> a
>>>> <br> element inside, etc.).
>>>> I guess the logic behind that is that it <br> elements should not be
>>>> used
>>>> for styling purposes. What is the reason you want to have an empty <br>
>>>> element at the end? Wouldn't it be better to use explicit CSS styling in
>>>> the
>>>> frontend website, e.g. put a CSS class on the parent tag of the html
>>>> contents with a bigger bottom margin? :)
>>>>
>>>>
>>>>
>>>>
>>>>
>>> One valid usecase might be anchors, these also get "cleaned"
>>> Is there a way to stop the cleaner from clean "empty" anchor tags?
>>>
>>> regard,
>>> shane
>>>
>>> ********************************************
>>> Hippocms-dev: Hippo CMS development public mailinglist
>>>
>>> Searchable archives can be found at:
>>> MarkMail: http://hippocms-dev.markmail.org
>>> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>>>
>>>
>>>
>>>
>> ********************************************
>> Hippocms-dev: Hippo CMS development public mailinglist
>>
>> Searchable archives can be found at:
>> MarkMail: http://hippocms-dev.markmail.org
>> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>>
>>
>>
>>
> ********************************************
> Hippocms-dev: Hippo CMS development public mailinglist
>
> Searchable archives can be found at:
> MarkMail: http://hippocms-dev.markmail.org
> Nabble: http://www.nabble.com/Hippo-CMS-f26633.html
>
>
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to