[img] BBCode causes text to format with double line spacing

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
Post Reply
Lady_G
Registered User
Posts: 272
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

[img] BBCode causes text to format with double line spacing

Post by Lady_G »

Support Request Template
What version of phpBB are you using? phpBB 3.2.2
What is your board's URL? No answer given
Who do you host your board with? No answer given
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What version of phpBB3 did you update from? phpBB 3.2.1
What extensions do you have installed? No answer given
What styles do you currently have installed? Prosilver
What language(s) is your board currently using? British English, American English
Which database type/version are you using? PostgreSQL 9.2.18
What is your level of experience? Comfortable with PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable?
I don't know when this problem was first observed. The most likely action is an upgrade from phpBB 3.2.1 (or the earlier upgrade from 3.1.10).
Please describe your problem.
Posts containing images result in double line spacing. Entering a single line break will display as 2 line breaks.

For example:
Test post.
A test image:
Image
single line
single line
will display as:
Test post.

A test image:

Image

single line

single line
The post is rendered in the web browser as:

Code: Select all

Test post.<br><br>
A test image:<br><br>
<img src="https://area51.phpbb.com/images/area51.png" class="postimage" alt="Image"><br><br>
single line<br><br>
single line<br><br>
last line of post
I am unable to reproduce this problem on my localhost test environment. If this problem is related to a difference between my localhost and server OS configuration, I do not understand why it would only appear with a BBCode.

There are no errors in the database or server logs.

Can someone please provide guidance how I can troubleshoot this problem?
User avatar
JoshyPHP
Code Contributor
Posts: 1288
Joined: Mon Jul 11, 2011 12:28 am

Re: [img] BBCode causes text to format with double line spacing

Post by JoshyPHP »

Disable every extension and try again with a new post in Preview mode. I assume it will work as expected. Then enable each extension individually until it stops working and you'll know.
Lady_G wrote: Sat Feb 24, 2018 1:36 am Do you have any extensions installed? Yes
What extensions do you have installed? No answer given
Considering you've already confirmed a fresh install worked fine, this is the most important information.
I wrote the library that handles markup in phpBB 3.2+.
Lady_G
Registered User
Posts: 272
Joined: Fri Jun 08, 2012 12:38 pm
Location: US

Re: [img] BBCode causes text to format with double line spacing

Post by Lady_G »

My installed extensions are the latest version of:
  • Board Rules
  • Password Strength
  • Stop Forum Spam
I disabled all 3 extensions and everything worked as expected. I then re-enabled each extension and the problem has not reappeared.

I don't understand why extensions which have no interactions with post content (and have been working for several years), would have this strange affect. Perhaps there was some interaction in the system cache, but I purge the cache routinely.

I will continue testing, but I think this problem is resolved. (If I see further problems, I will update this topic.)

Thank you!
Post Reply

Return to “[3.2.x] Support Forum”