• When I use the new 2.02 editor it seems to add line breaks to lists. When I view the code in html view in the editor it looks good and the lists in the WYSIWYG editor looks good. But when I save and view the page source code the line breaks are in the list tags and ul tag.

    It seems to affect every list I create in the editor.

    Here is an example of error code. Notice line breaks inserted before the ul tag and after the li tags:


    <p><em><strong>Does this list work correctly?</strong></em><br />
    <ul></p>
    <p><li>list item1</li><br />
    <li>list item2</li><br />
    <li>list item3</li><br />
    </ul></p>

Viewing 13 replies - 1 through 13 (of 13 total)
  • I personally like to disable the new editor and do everything by hand.

    Mainly because several of my plugins require comment style tags to call the function, and the new editor will automatically wrap code tags around them, etc..

    Even if it was not adding breaks after the list items, you certainly do not want to start a UL in the middle of a P, and you do not really want a P wrapped around a UL, especially when the P starts after the UL.. if you know what I mean ?? It is very messy and will not validate properly.

    Don’t get me wrong.. the new style editor is good for people who are simply writing text, but if you throw too much more at it, it can be a hassle to work around it.

    You might want to check your plugins as well. Textile 2 always seemed to do this to me if I didn’t use the built-in method of producing lists.

    Thread Starter danv

    (@danv)

    I don’t have any plug-ins installed. I am using the default theme.

    I turned off the visual editor in 2.02. It should be easier to use now.

    But when I save and Publish (added new text to make sure I was looking at the newest version) the web page source still shows the <br/> tags in each list item when the source does not…?

    The page source looks like this still:


    <ul></p>
    <p><li>list item1</li><br />
    <li>list item2</li><br />

    <li>list item3</li><br />
    <li>list item4</li><br />
    </ul></p>

    The source html does not have the line break tags at all?

    Any more ideas? thanks,

    I would try creating a completely new post with some text and a test list and see if it still adds the breaks and weirdly placed p tags in it.

    Thread Starter danv

    (@danv)

    Same problem after creating a brand new post via Word Press and not using the Visual Editor.

    Here is the HTML before publishing:

    I am testing the lists in my web site.

    <ul>
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
    </ul>

    How does it look?

    Here is the HTML Page code after publishing:


    <div class="entry">
    <p>I am testing the lists in my web site.</p>

    <p><ul></p>
    <p><li>Item 1</li><br />

    <li>Item 2</li><br />
    <li>Item 3</li><br />
    </ul></p>

    <p>How does it look?</p>

    </div>

    why don’t you try using the rich-text editor and the button that makes lists?

    Thread Starter danv

    (@danv)

    Maybe I didn’t understand how the editor works?

    I can only get the resulting HTML to look “mostly correct” if:
    I strip all whitespace between tags out of the editor and never hit the return key. Then and only then will I have just one extra starting and ending tag at the very end of the page.

    Example:

    Editor HTML looks like this:


    <p>I am testing the lists in my web site.</p><ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul><p>How does it look?</p>

    Published HTML looks like this:


    <div class="entry">
    <p><p>I am testing the lists in my web site.</p><ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul><p>How does it look?</p></p>

    </div>

    It should definitly not be doing that.. especially with the new editor turned off.. maybe something is buggy with your installation. I am out of ideas ??

    But you definitly have no plugins installed? Or have made no modifications to the core files?

    Heck, I can’t get mine to put *IN* the line breaks! I’ll trade you! ??

    https://infocynic.opennet.us

    Thread Starter danv

    (@danv)

    ipowerweb upgarded us all ‘automajically’ to version 2.02 from 1.5

    Yes I have modified a little bit of CSS but not core files. Absolutely no plugins that I installed. Is there a quick way to check? Wait a minute…

    They must have installed Textile1 or is it default with 2.02? Should I remove Textile 1.0? Do I have to make a backup first?

    Plugins Activated:

    Hello Dolly 1.5
    Textile 1.0

    Issues currently experiencing:
    1. I always get a trailing paragraph ending tag at the end of the article.
    2. I always get a initial paragraph tag at the begining of my article, so my first sentence just has an ending paragraph tag and no beginning by me.
    3. I can’t have any spaces between tags in the entire unordered List or in the line before it – else I will get line breaks.
    4. If I hit shift-enter or enter I always get a line break at the end of the article.

    Thread Starter danv

    (@danv)

    I unistalled the Textile 1.0 plugin. That seemed to fix problems 1-3 ! I Have not tested 4 yet. It validates! Except for an empty list from the WordPress Default theme page: sidebar.php

    I am wondering if I should add a space to that list section so the list validates. Any foreseen problems if I do it?

    Here is the page source from Firefox

    </li>

    <!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
    <li><h2>Author</h2>
    A little something about you, the author. Nothing lengthy, just an overview.

    </li>
    -->

    <li>
    </li>

    Uninstalled? You said before that you did not have any plugins installed! ?? I guess you meant aside from whatever it came with ?? Glad you got it working!

    Thread Starter danv

    (@danv)

    Thanks a lot by the way. I’m glad you mentioned again about plugins. I don’t know how that one was installed.

    Cheers,

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘2.02 adding <br> tags to <li> and <ul> tags ?’ is closed to new replies.