Page 1 of 1

Add a line break or multiple blank lines BBcode

Posted: Wed Dec 20, 2017 4:03 pm
by steven
I really like phpBB but was having a hard time adding a simple blank line to my topics. Normally when you create a post you can add a blank line which appears in your post when editing but may not appear in the online version. In some cases you may want two blank lines or if you add pictures or use the download extension, you might want to have a blank line before and after the images.

I tried various online instructions and tried some of the complicated codes which did not work in my case. So instead of modifying phpBB, I resorted to using an HTML command by creating the BBcode shown below.

BBcode Usage:

Code: Select all

[br][/br]
HTML Replacement:

Code: Select all

<br/>
Help line:

Code: Select all

Adds a line break or blank lines
Use this code to add a line break in a sentence or add one or multiple blank lines between list entries.
  1. First line test
  2. Second lIne test

  3. Third lIne test



  4. Fifth line test
Additionally multiple blank lines are not removed when parsed by phpBB 3.2.

In some cases phpBB may cause two line breaks instead of one. If this occurs use the line break inline to get one break.
For example:

Code: Select all

If you enter a line then add the brake on the next line
[Br][/Br]
You get two breaks instead of one
If you enter a line then add the brake on the next line


You get two breaks instead of one

Enter the break inline to get one break

Code: Select all

If you enter a line break here[Br][/Br]
You get one break instead of two
If you enter a line brake here

You get one break instead of two

Sometimes a line break will still give two blank lines when used with other BBcodes. In those cases try using a character space instead.

I posted this on my site because the topic was locked on the phpBB forums.