Line breaks inside <table> tags should not be parsed into <br/>s



  • <table>
    <tr>
    <td>
    test1
    </td>
    <td>
    test2
    </td>
    </tr>
    </table>
    
    test1 test2

    See that huge blob of whitespace there? That's every newline in that table turned into a <br/> and plopped before the table.



  • @Maciejasjmj Also, while we're at it, some border:s and padding: on table cells would be nice to put into the default stylesheet.



  • @Maciejasjmj Interesting...

    <p></p><p><br/><br/><br/><br/><br/></p><table>
    <tbody><tr>
    <td><br/>
    test1<br/>
    </td>
    <td><br/>
    test2<br/>
    </td>
    </tr>
    </tbody></table><p></p>
    <p>See that huge blob of whitespace there? That&#39;s every newline in that table turned into a &lt;br/&gt; and plopped before the table.</p>
    

Log in to reply
 

Looks like your connection to What the Daily WTF? was lost, please wait while we try to reconnect.