Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#893 Copy as HTML loses runs of whitespace on render

3.1
open
Colin Bell
Core (461)
5
2012-12-29
2010-07-23
John Hardin
No

If a char() or varchar() column contains runs of spaces, the Copy as HTML function copies the spaces into the HTML verbatim. When displayed, the HTML client collapses the runs of spaces tp a single space.

Copy to HTML should probably convert multiple spaces to multiple  

Wrapping the (var)char column in <pre></pre> tags would also preserve the spaces for display, but that changes the font relative to the other data. Perhaps _all_ data cells should be wrapped in <pre></pre> regardless of data type: <td><pre>...data...</pre></td> ? That would display all data the same, render runs of whitespace properly, and would not modify any of the data itself.

Discussion