On 2015-10-07 10:43, Gavin Smith wrote:
So here's another thing to consider. Whether the final word of an
@html block is adjoined to the following word also depends on what
came *before* the @html block:

@html
foo
@end html
bar

bas
@html
foo
@end html
bar

This produces:

foo<p>bar
</p>
<p>bas
foobar
</p>

In the first example, the "bar" line starts a paragraph, in the second
example, it is already inside a paragraph, so doesn't.

Is consistency with @inlineraw also a consideration? It seems to be more
friendly with paragraphs:

      @inlineraw{html, foo}
      bar

produces

      <p>foo
      bar
      </p>

and even the @inlineraw by itself gives a <p> element. One might expect
that a raw block is interchangeable with an @inlineraw command with the
block body as its argument and with added whitespace, similar to how the
manual states that @inlinefmt{html, x} "is nearly equivalent to" @ifhtml
"except that no whitespace is added".

Reply via email to