Menu

#172 Directives within line blocks within grid tables

closed-invalid
nobody
None
3
2011-08-22
2011-08-22
No

Directives within line blocks within grid tables are interpreted as invalid substitutions rather than directives.

Nor can directives like the class directive be used within the deprecated line-block directive.

Consider the example:

+---------+----------------+
| Address | |..class:: foo |
| | | |
| | | bar |
| | | baz |
+---------+----------------+

Expect a table with a class of 'foo' applied to cell 2. Instead, the class is interpreted as a malformed substitution reference.

Discussion

  • Günter Milde

    Günter Milde - 2011-08-22

    There are missing space characters between the "line-block-bar" and the directive as well as between
    the dots and the directive name

    Also, the class directive must precede the object it applies to, so maybe you wanted

    +---------+-----------------+
    | Address | .. class:: foo |
    | | |
    | | | bar |
    | | | baz |
    +---------+-----------------+

    Or, with the line-block directive:

    .. class:: foo
    .. line-block::

    bar
    baz

     
  • Günter Milde

    Günter Milde - 2011-08-22
    • priority: 5 --> 3
    • status: open --> closed-invalid
     

Log in to post a comment.