Empty block elements in Ducktype

Shaun McCance <shaunm at gnome.org>
Fri Jan 2 10:46:09 EST 2015

On Thu, 2015-01-01 at 16:15 -0500, Shaun McCance wrote:
> And most distressingly, I can't use the links element at all.
> 
>   [links type=topic]
> 
>   This is a child of the links element, which is just dumb.
> 
> What's worse, this isn't just a case of the default behavior not being
> what you expect, there is just absolutely no way to get around this.
> Empty block elements are impossible.

I have found a workaround. Non-intuitive, and not something I want to be
telling people to do. Just give them an artificial indent.

  This is before the links.

    [links type=topic]

  This is after the links, which was indented for the sole purpose
  of letting me use unindent in this paragraph to break free.

I have a case where I'm using three links elements for grouping. So
bonus indents FTL.

      [links topic groups="#first #default #last"]

    [links topic groups=foo]
    . Foo Tasks

  [links topic groups=bar]
  . Bar Tasks

Let's not inflict this pain on users.

--
Shaun