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

HabariImporter opened this Issue Jun 27, 2011 · 4 comments


None yet

3 participants


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


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


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:


Author: @michaeltwofish
related: #1059, #1229


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

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