Problem with Table syntax (rowspan on the second column)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with Table syntax (rowspan on the second column)

ch007m
Hi,

The following asciidoc - table does not work as the cell of the second column does not span 2 rows

|===
|.2+|image:websocket.png[width="25%"]
a| * Websocket revealed +
** Full-duplex single +
   socket connection
** HTTP request followed +
   by WebSocket data +
   Packets exchange +
** ws:// and wss:// protocol +
** Developed part of HTML5 initiative +
** Specification rfc-6455 (Dec-2011) managed by IETF Task Force |
|===

The HTML generated does not include the rowspan within the first
 but instead display the syntax used (.2+).

            <table class="tableblock frame-all grid-all" style="width:100%">
                <colgroup>
                    <col style="width:50%">
                    <col style="width:50%">
                </colgroup>
                <tbody>
                <tr>
                    <td class="tableblock halign-left valign-top"><p class="tableblock">.3+</p></td>
                    <td class="tableblock halign-left valign-top"><p class="tableblock"><span class="image"><img
                            src="data:image/png;base64,iVBORw0...
alt="websocket" width="25%"></span></p></td>
                </tr>

Should be

            <table class="tableblock frame-all grid-all" style="width:100%">
                <colgroup>
                    <col style="width:50%">
                    <col style="width:50%">
                </colgroup>
                <tbody>
                <tr>
                    <td class="tableblock halign-left valign-top"><p class="tableblock"></p></td>
                    <td class="tableblock halign-left valign-top" rowspan="2"><p class="tableblock"><span class="image"><img
                            src="data:image/png;base64,iVBORw0KG..."
                            alt="websocket" width="45%"></span></p></td>
                </tr>
                ...

- What is the issue ?
-  If I look to this unit test to create my own example https://github.com/asciidoctor/asciidoctor/blob/master/test/tables_test.rb#L455 we mix so many different options (colspan, rawspan, monospace text, strong text, text positioning, ...) that finally I'm lost due to syntax complexity. Do you think that someone will create its content using sentence like this (^|5 2.2+^.^|6 .3+<.>m|7) ...

Regards,
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard
Reply | Threaded
Open this post in threaded view
|

Re: Problem with Table syntax (rowspan on the second column)

ch007m
Find the problem. There was not space after the first '|'

Syntax correct is :

| .2+|image:websocket.png[width="55%"]
Charles Moulliard
Apache Committer / Technologist Evangelist / Blogger / MiddleWare Specialist
Twitter : @cmoulliard