Why print $block->content sometimes converts line break to  but sometimes does not? During debugging of a sliding animation, I found that print $block-&gt;content sometimes convert line breaks to &lt;br /&gt;.

The following code in a block:

&lt;div class="paging" style="display: block;"&gt;
  &lt;a rel="1" href="#" class=""&gt;1&lt;/a&gt;
  &lt;a rel="2" href="#" class=""&gt;2&lt;/a&gt;
  &lt;a rel="3" href="#" class=""&gt;3&lt;/a&gt;
&lt;/div&gt;


is output in HTML as:

&lt;div class="paging" style="display: block;"&gt;
  &lt;a rel="1" href="#" class=""&gt;1&lt;/a&gt;&lt;br /&gt;
  &lt;a rel="2" href="#" class=""&gt;2&lt;/a&gt;&lt;br /&gt;
  &lt;a rel="3" href="#" class=""&gt;3&lt;/a&gt;
&lt;/div&gt;


Note: there are two &lt;br /&gt;.

While the following code in a block (&lt;a&gt; &lt;/a&gt; surrounded by &lt;div&gt; &lt;/div&gt;):

&lt;div class="paging" style="display: block;"&gt;
  &lt;div&gt;&lt;a rel="1" href="#" class=""&gt;1&lt;/a&gt;&lt;/div&gt;
  &lt;div&gt;&lt;a rel="2" href="#" class=""&gt;2&lt;/a&gt;&lt;/div&gt;
  &lt;div&gt;&lt;a rel="3" href="#" class=""&gt;3&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


is output in HTML as:

&lt;div class="paging" style="display: block;"&gt;
&lt;div&gt;&lt;a rel="1" href="#" class=""&gt;1&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a rel="2" href="#" class=""&gt;2&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a rel="3" href="#" class=""&gt;3&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


Note: there is no &lt;br /&gt;.

How can I disable line break to &lt;br /&gt; conversion when printing block content?
This could be due to the input format you are using for the block's content region.

Assuming you are using the default input format (id 1), the filter option Line break converter is probably enabled. See admin page: /admin/settings/filters/1

You can uncheck this setting in the default input format or you can use a different input format by clicking on the Input format fieldset under the Block body content region.

If you do not have any other input formats, you can add a new one that does not use this Line break converter setting here: /admin/settings/filters/add

Note: Being able to configure or add any input format requires the administer filters permission from the filter module.