[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]

xtable/freetable remove linebreak



Hi all,

I think there is a problem with wml::fmt::xtable in WML 1.99.8. 
It removes all linebreaks inside the <td>-Tag. This is a problem 
if you've got javascript in there, e.g. a <rollover...>. I found 
out that this happens in Pass 3 (ePerl). IMHO <xtable> should 
really preserve linebreaks.

-------test.wml----------

#use wml::des::rollover
#use wml::fmt::xtable
#use wml::std::page

<page>
<xtable>
(1,1)
<rollover name="heading1" src="pics/heading1.gif" 
	oversrc="pics/heading1_hl.gif" href="heading1" alt="heading1">
</xtable>
<page_end>

-------test.wml----------

wmk test.wml results in (everything between <td> and </td> is in the
same line):

-------test.html---------

<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000" link="#333399" alink="#9999ff" vlink="#000066">
<!-- WARNING: The following table was produced by freetable. -->
<!-- Unless know what you are doing, you should not edit it here, -->
<!-- but edit sources and then run freetable to rebuild this table -->
<table>
  <tr>
      <td><script type="text/javascript" language="JavaScript"> <!-- Hiding the code function ro_imgNormal(imgName) { if (document.images) { document[imgName].src = eval(imgName + "_n.src"); self.status = ''; } } function ro_imgOver(imgName, descript) { if (document.images) { document[imgName].src = eval(imgName + "_o.src"); self.status = descript; } } // done hiding --> </script> <script type="text/javascript" language="JavaScript"> <!-- Hiding the code if (document.images) { ro_img_heading1_n = new Image(); ro_img_heading1_n.src = "pics/heading1.gif"; ro_img_heading1_o = new Image(); ro_img_heading1_o.src = "pics/heading1_hl.gif"; } // done hiding --> </script> <a href="heading1" onMouseOver="ro_imgOver('ro_img_heading1', 'heading1'); return true" onMouseOut="ro_imgNormal('ro_img_heading1'); return true"><img name="ro_img_heading1" src="pics/heading1.gif" alt="heading1" border="0"></a></td>
        </tr>
</table>
</body>
</html>

-------test.html---------

cu,

Timo

-- 
Timo Neumann      -- GUS#2 --        '95-'96  Suzuki GS500E 11.2 Mm
http://www.userland.de/              '96-'99  Honda  CB750  32.3 Mm
PGP: 1024/0792BF9D 18 07 12 F7 E4 2C 3A 66  BD 74 2D 60 81 45 02 DA
--------------  Do you know where your towel is?  -----------------
______________________________________________________________________
Website META Language (WML)                www.engelschall.com/sw/wml/
Official Support Mailing List                   sw-wml@engelschall.com
Automated List Manager                       majordomo@engelschall.com