W3C home > Mailing lists > Public > www-amaya@w3.org > October to December 2006

Preserve table source formatting

From: Stanimir Stamenkov <stanio@myrealbox.com>
Date: Wed, 01 Nov 2006 15:21:10 +0200
Message-ID: <45489F46.4070501@myrealbox.com>
To: "www-amaya.w3.org" <www-amaya@w3.org>

Is it possible to keep a table's source formatting when editing it 
in Amaya? I have rather large tables formatted like:

<table border="1">
   <tr><th>A</th><th>B</th><th>C</th></tr>
   <tr><td>1</td><td>2</td><td>3</td></tr>
   <tr><td>4</td><td>5</td><td>6</td></tr>
</table>

After editing the cell content in Amaya (without bothering with the 
existing table structure) it is reformatted as:

<table border="1">
   <tbody>
     <tr>
       <th>A</th>
       <th>B</th>
       <th>C</th>
     </tr>
     <tr>
       <td>1</td>
       <td>2</td>
       <td>3</td>
     </tr>
     <tr>
       <td>4</td>
       <td>5</td>
       <td>6</td>
     </tr>
   </tbody>
</table>

I don't want the table source reformatted as for long (data) tables 
it adds unnecessary size (in means of formatting whitespace) and 
becomes less convenient for me when editing things in the source 
directly.

May be it could be made so whitespace inside <table> markup is 
preserved (not reformatted all over again) while formatting it only 
on-demand or formatting just new elements (rows, cells, columns) 
created from the Amaya interface.

-- 
Stanimir
Received on Wednesday, 1 November 2006 13:21:19 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:53:37 UTC