WordPress.org

Ready to get started?Download WordPress

Forums

Ignore Blank Lines In HTML View (7 posts)

  1. cozbaldwin
    Member
    Posted 2 years ago #

    So, in the HTML view, if I have a blank line, it automatically translates that into a new paragraph. I was wondering if there's a plugin or setting adjustment that can force WordPress to ignore that whitespace and keep it in the same paragraph? Basically just act like a true HTML editor.

    Example:

    <span style="font-size: small;"> CONTENT LINE 1</span>
    <span style="font-size: small;"> CONTENT LINE 2</span>
    
    <span style="font-size: small;"> CONTENT LINE 3</span>

    Would print as:

    CONTENT LINE 1
    CONTENT LINE 2
    CONTENT LINE 3

    ...even though there was a blank line in the HTML.

  2. yoonmi
    Member
    Posted 1 year ago #

    Anyone have an solution for this?

  3. cozbaldwin
    Member
    Posted 1 year ago #

    I don't think I ever found the solution for it.
    Just a pain in the butt to delete any blank lines that end up in there.

  4. yoonmi
    Member
    Posted 1 year ago #

    ugh really, do you know if it reads the comment tags as well as spacing?

    - Thanks man -

  5. cozbaldwin
    Member
    Posted 1 year ago #

    I dont know what you mean... could you clarify?

  6. yoonmi
    Member
    Posted 1 year ago #

    <a class="report" href="#"><!-- Statistic Icon (edit to change icon) --><span class="report-icon ic ic-building"></span>
    can I leave my comment tag in between or do I need to get rid of that too?

  7. yoonmi
    Member
    Posted 1 year ago #

    *resolved*
    decided just to be safe to take the comments out too...worked great!

Topic Closed

This topic has been closed to new replies.

About this Topic