autop() is inserting paragraph tags on spaces when <img> wrapped in <div> #110

Closed
HabariImporter opened this Issue Jun 27, 2011 · 4 comments

Projects

None yet

3 participants

@HabariImporter

Initially reported by: @lildude as #TRAC1231
The following pseudo code inserted into a post:

<div><img>&nbsp;<img>&nbsp;<img>&nbsp;<img></div>

... results in the following after it's been through autop():

<div><img><p>&nbsp;<img>&nbsp;<img>&nbsp;<img></p></div>

Note the location of the <p>, it's after the first <img> tag.

Placing a space immediately after the <div> works around this issue and results in:

<div><p>&nbsp;<img>&nbsp;<img>&nbsp;<img>&nbsp;<img></p></div>
@HabariImporter

Author: @michaeltwofish
related: #1059, #1229

@stuchl4n3k

I believe I just fixed that, please wait until I create a fork...

@ringmaster ringmaster added a commit to habari/tests that referenced this issue Mar 26, 2012
@ringmaster ringmaster Updated autop/format tests for habari/habari#110 1a4d9e8
@stuchl4n3k stuchl4n3k referenced this issue in habari/system Mar 27, 2012
Closed

autop() issue patch #12

@mikelietz mikelietz closed this May 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment