[Project_owners] Handling HTML in extensions (Bug in Mozilla and Firebird or am I doing something wrong?)

Neil neil at parkwaycc.co.uk
Mon Dec 29 14:43:52 EST 2003


Jaap A. Haitsma wrote:

> Neil wrote:
>
>> The XUL content sink currently trims all text passed to it, which is 
>> why you are getting the problem. There appear to be two ways to solve 
>> the problem: make <![CDATA[ ]]> force a space, or not to trim text, 
>> unless the text is entirely whitespace, e.g.
>> <description>
>>  Normal text.
>>  <html:b>Bold text.</html:b>
>> </description>
>> With the current code this becomes "Normal text*Bold text.*"; with 
>> the second change it would become "
>>  Normal text.
>>  *Bold text.*"
>> Since this way appears to be more useful can anyone think of any 
>> adverse side-effects?
>
> I assume the output of the second change is "Normal text. *Bold text*" 
> instead of the extra linefeeds which are in your mail

Actually I'm not sure what the display will be, but the output to the 
document would have those linefeeds, yes.



More information about the Project_owners mailing list