Hi Lex,

thanks for the awesome respone time.

Unfortunately, its not over yet ;-)

I am trying to output a table with a custom class set (its ok to have it 
set in the surrounding DIV) and no "width" attribute.

I have put 

[attributes]
autowidth-option=""

at the beginning of my ASCIIDOC file.

The ASCIIDOC snippet below still produces an html output with no "class" 
set:

[role="henk"] 
|============ 
|a    | b 
|1    | 1 
|============  

Here is the HTML:

<div class="tableblock">
<table rules="all" width="100%" frame="border" cellspacing="0" 
cellpadding="4">
<colgroup><col width="50%">
<col width="50%">
</colgroup><tbody>
<tr>
<td align="left" valign="top"><p class="table">a</p></td>
<td align="left" valign="top"><p class="table">b</p></td>
</tr>
<tr>
<td align="left" valign="top"><p class="table">1</p></td>
<td align="left" valign="top"><p class="table">1</p></td>
</tr>
</tbody>
</table>
</div>

Any ideas?

Best
Martin


> Thanks for the quick answer. still unsucessful: 
> > 
> > [role="henk"] 
> > |============ 
> > |a    | b 
> > |1    | 1 
> > |============ 
> > 
> > Renders To: 
> > 
> > <table rules="all" width="100%" frame="border" cellspacing="0" 
> > cellpadding="4"> 
> > <colgroup><col width="50%"> 
> > <col width="50%"> 
> > </colgroup><tbody> 
> > <tr> 
> > <td align="left" valign="top"><p class="table">a</p></td> 
> > <td align="left" valign="top"><p class="table">b</p></td> 
> > </tr> 
> > <tr> 
> > <td align="left" valign="top"><p class="table">1</p></td> 
> > <td align="left" valign="top"><p class="table">1</p></td> 
> > </tr> 
> > </tbody> 
> > </table> 
> > 
> > 
> > How can I get rid of the "width" attribute and have a "class" attribute 
> set? 
> > 
>
> Please don't use HTML mail on lists, bold looks like you are shouting. 
>
> The class is on the div surrounding the table element along with 
> "tableblock". 
>
> To take the explicit width off use the autowidth option. 
>
> Cheers 
> Lex 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/asciidoc/-/Vsb3k02m6h0J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/asciidoc?hl=en.

Reply via email to