pict-drupal-module.png brbr line break filter is an original Drupal module that replaces the standard line break filter.

Since Drupal's standard line break filter mainly uses <p></p> tag and multiple line breaks can be combined into a single line break, I do not like it. That's the reason I created this original filter module.

As you can guess from its name, brbr line break filter uses <br /> tag for all the line breaks and it maintains multiple line breaks. Then, it wraps the entire article with <p></p> tag so that layouting with <p></p> tag still works OK too.

Here's an example of how brbr line break filter works.

brbr-screen.png
Drupal's standard line break filter would generates the following HTML code.

  1. <p>This is test article</p>
  2. <p>This is 3rd line</p>
  3. <p>This is 6th line (2 blank lines above)<br />
  4. This is 7th line</p>

While, brbr line break filter would generates the following HTML code.
  1. <p>
  2. This is test article<br />
  3. <br />
  4. This is 3rd line<br />
  5. <br />
  6. <br />
  7. This is 6th line (2 blank lines above)<br />
  8. This is 7th line</p>

As you can see above, brbr line break filter replaces each line break with <br />. Therefore, multiple line breaks are retained. Also it wraps the entire article with <p></p> tag for the layouting compatibility purpose.

Since this is a simple module and it's not a major one, we are distributing this module only at this side.

After you install this module to your Drupal, you need to activate the filter at the Administer > Site Configuration > Input Format page. Do not forget to disable standard line break filter too if you use this brbr line break filter.

This modules is developed for Drupal 6.x, but it can be used with Drupal 5.x too. In order to use it with Drupal 5.x, you need to edit enclosed brbr.info file and change "core = 6.x" to "core = 5.x".


AttachmentSize
brbr-6.x-1.0.tar.gz7.36 KB
No votes yet