Version: 2.11.1 Reporter: GDmac - expocom —
This is an archived bug report. If you are experiencing a similar issue, upgrade to the latest release and if that does not solve the problem, submit a new bug report
All whitespace in conditionals is completely removed by the conditionals parser in
expressionengine/library/parser/conditional/parser.php
method closeBuffer() does a trim($out) causing all anchor tags to hug together
{exp:low_yearly_archives channel="foobar"}
<div>{year}</div>
{months}
{if "{num_entries}" != "0"}
<a href="http://{path=group/template/{year}/{month_num}}">{month_short}</a>
{/if}
{/months}
{/exp:low_yearly_archives}
Change conditional parser method closeBuffer() to, instead of trim($out) to return ltrim($out), or return $out, to keep some of your whitespace around. Ideally the parser should return the full tagdata when the condition is met, and nothing when the condition is not met.
ExpressionEngine implements Markdown Extra and BBCode. Please see the Markdown Extra docs and the BBCode Wikipedia article for a full reference.
**bold**
, __bold__
, *italics*
, _italics_
, ~strike/del~
, `code()`
bold, italics, strike/del, code()
Link: [link title](https://example.com)
Image: ![alt text](https://example.com/image.jpg)
[blockquote]...[/blockquote]
, [quote]...[/quote]
, and Markdown style:
> Some quoted text. > > This is all one quote.
[code]...[/code]
, and you can also specify the language for syntax highlighting, [code=php]...[/code]
GitHub flavored Markdown code fences are also supported:
``` public function decoderRing($str) { return str_rot13($str); } ```