Oznámení

Provoz fóra byl ukončen

Table containing block

před 12 lety

emgee
Člen | 4

Hi, sorry for the English but I don't know any Czech!

I am trying (and failing) to build a table where a cell containing an address spans multiple rows. Obviously, I would like the address to be formatted correctly, i.e. with line breaks in specific places.

To demonstrate, here is the equivalent as reStructuredText using its table[1] and line block[2] syntax:

+----------------------------+---------------------------+---------------------+
| Address                    | Time                      | Age Group           |
+----------------------------+---------------------------+---------------------+
| | Kirkstall Leisure Centre | Tuesday, 7:00pm-8:30pm    | Junior              |
+ | Leeds                    +---------------------------+---------------------+
| | West Yorkshire           | Tuesday, 8:30pm-10:00pm   | Senior              |
+                            +---------------------------+---------------------+
|                            | Saturday, 9:00am-10:00am  | Junior (under 9)    |
+                            +---------------------------+---------------------+
|                            | Saturday, 10:00am-11:30am | Junior (9 and over) |
+                            +---------------------------+---------------------+
|                            | Saturday, 11:30am:1:00pm  | Senior              |
+----------------------------+---------------------------+---------------------+

Any help would be much appreciated!

Thanks, Matt

[1] reStructuredText table, http://docutils.sourceforge.net/…uickref.html#…

[2] reStructuredText line block, http://docutils.sourceforge.net/…uickref.html#…

před 12 lety

David Grudl
Nette Core | 6806

In Texy there is a little bit simpler syntax – without horizontal lines. So „rowmerge“ is symbolized as ^:

| Address                    | Time                      | Age Group           |
|----------------------------+---------------------------+----------------------
| Kirkstall Leisure Centre   | Tuesday, 7:00pm-8:30pm    | Junior              |
|  Leeds                    ^| Tuesday, 8:30pm-10:00pm   | Senior              |
|  West Yorkshire           ^| Saturday, 9:00am-10:00am  | Junior (under 9)    |
|                           ^| Saturday, 10:00am-11:30am | Junior (9 and over) |
|                           ^| Saturday, 11:30am:1:00pm  | Senior              |

Demo

Support for multiple rows I have added in revision 196. Download last version please.

před 12 lety

emgee
Člen | 4

Thank you!

An example like this would be really nice in the syntax documentation, if it's not already there in Czech ;-).

před 12 lety

emgee
Člen | 4

I think I found a bug with rowmerge and blocks:

|* Column 1 |* Column 2  |* Column 3 |
|           | 1) one     |           |
|          ^| 2) two    ^|          ^|
|          ^| 3) three  ^|          ^|

The cell containing the list is not parsed correctly. It seems to be because of the rowmerge marks in the last row. See https://texy.info/en/try/anne7.

před 12 lety

David Grudl
Nette Core | 6806

It is fixed in last revision.

před 11 lety

emgee
Člen | 4

Sorry for the slow reply. I've upgraded Texy! and I can confirm the problem has been fixed. Thanks for quick response!