• 234pm

    (@joshuajjsmithyahoocom)


    Hi,

    When indent an item in a bulleted list, a blank line gets inserted before the level 2.

    For example – (i’ll just use a dash to represent the bullet – i’m not using the ul tag in this post)

    I enter …
    – level one
    – level two
    – level one

    And when I save, I have …
    – level one

    – level two
    – level one

    How do I fix this?

    NOTE – I’m also using ckeditor version 4.0.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter 234pm

    (@joshuajjsmithyahoocom)

    Hmm – it didn’t display what I typed.

    I indented “- level two” by two spaces when I typed it, but those two spaces were stripped.

    Ok – let me try using the ul/li tags of this post editor.

    So, in my post, I put this – note, level two is indented, so a “sub-ul” under the first level one …

    • level one
    • level two
    • level one
    • But when I save, I get a blank line before the level two…

    • level one
    • level two
    • level one
    Thread Starter 234pm

    (@joshuajjsmithyahoocom)

    ok – now this is pretty ironic …

    Well, suffice to say then … when I create a “sub-ul” – ie indented, a blank line gets put before the ‘sub-ul’.

    Plus, every time I save the post, a new blank line gets added.

    Any help on how to fix this would be GREATLY appreciated!

    Thanks,
    Josh

    Well, your post has really messed up this thread. Anyway, link to a post showing the issue would help. It could be CSS or something else causing the appearance.

    Thread Starter 234pm

    (@joshuajjsmithyahoocom)

    Yes, I see it has really messed up this page – sorry about that.

    Re URL – the problem happens when I click save – ie while in admin editing the post – so i can’t give access to that.

    Here’s the url for the frontend – http://www.scbwi.org/test-blank-lines/. Note that there’s no bullets. That’s a separate issue i’m dealing with, but you do still see the blank line before “level two”.

    Here’s some screen prints of my post editing:

    Before clicking update – http://screencast.com/t/qitPsz5c
    After clicking update – http://screencast.com/t/vc0ZAvVN7f

    And here’s the ‘source’ view after clicking update – http://screencast.com/t/pQHNseWFxI

    Note the paragraph tag that’s inserted before ‘level two’.

    If I click update again, it will add another blank line, and so on with every update.

    A reminder that I’m using ckeditor, ver 4.0. Just in case that’s the problem.

    Thanks

    Looking at the code on that post:

    <ul>
    <li class="first-child">
    		level one<p></p>
    <ul>
    <li class="first-child last-child">
    				level two
    			</li>
    </ul>
    </li>
    <li>
    		level one
    	</li>
    <li class="last-child">
    		level one
    	</li>
    </ul>

    I noticed it added an empty <p></p> tag. This is what is adding the extra line there. Might go to into User Profile, disable the Visual Editor and edit the post. Perhaps the Visual Editor or some plugin is adding them.

    Thread Starter 234pm

    (@joshuajjsmithyahoocom)

    Sorry for my delayed reply.

    Hmm – that was an interesting change. Disabling the visual editor showed me only the source (as expected), but the source did NOT have that empty p tag. But when I enabled again and then viewed the sourc, that empty p tag was there again.

    So – I think this is telling me that that empty p tag is being inserted by the javascript of the visual editor.

    I’m using ckeditor. Do you think it’s there, or could the wordpress visual editor still be causing the problem?

    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘blank lines inserted in bulleted lists’ is closed to new replies.