DText's [code] tag can be used in two ways. Inline code looks like this. It is translated to the <code> tag in HTML, and as such, it ignores both
linebreaks and duplicated spaces.
Quote this
post to see
how I typed
it
up.
(Interestingly, DText doesn't ignore
linebreaks in text outside [code] tags, although it does ignore duplicated spaces.)
Block looks like this, and translates to HTML's <pre> tag, preserving all whitespace.
Apparently, a [code] tag is considered inline iff it is immediately preceded on its line by another inline-type element. This includes unformatted text,
but not things like
quote blocks,
opening tags of quote blocks,
or other
code blocks.
However,
the [code] tag seems to include the PREVIOUS line as part of its own for the purpose of determining whether it should be inline or block.
If the previous line ends with an inline-type element, the [code] block displays inline even if it is the only thing on its line. That does not seem like intended behavior. If not, consider this a bug report; if in fact so, consider this a tweak request: please let code tags be treated as inline only if they have inline elements on their own lines. The current behavior is highly counterintuitive, and I must have spent thirty minutes figuring out what the heck was wrong with the markup in another OP I was writing before I figured it out and felt compelled to drop what I was doing and make this thread instead.
It would also be nice
if it were possible to start a line with an inline quote without exploiting the above-described behavior, but that seems less important because it doesn't seem like quite as much of a gotcha.