WordPress.org

Ready to get started?Download WordPress

Forums

Fix automatic insertion of <p></p> or allow toggle (4 posts)

  1. seththomasrasmussen
    Member
    Posted 9 years ago #

    The feature whereby WP will automatically wrap paragraphs in tags is nice, but it needs to be smarter and/or have the option to be disabled.
    For instance, I've defined a class of <pre></pre> for use in marking up song lyrics. If I start off like so:
    <pre class="lyrics">people you love will turn their backs on you
    you'll lose your hair
    your teeth
    your knife will fall out of its sheath
    but you still don't like to leave before the end of the movie</pre>

    WP inserts after "sheath" and before "but", but it doesn't get the opening before "people". This hilights how I feel the behavior should be smarter, but in fact in this instance I give, this is where I would prefer a toggle to disable the "feature" for this entry. I do not want any tags within' that <pre></pre> block.

  2. seththomasrasmussen
    Member
    Posted 9 years ago #

    D'oh... I forgot backticks... that should read:
    WP inserts after "sheath" and before "but", but it doesn't get the opening before "people". This hilights how I feel the behavior should be smarter, but in fact in this instance I give, this is where I would prefer a toggle to disable the "feature" for this entry. I do not want any tags within' that <pre></pre> block.

  3. seththomasrasmussen
    Member
    Posted 9 years ago #

    As a matter of fact, if I understand the specs correctly, <pre></pre> tags should never have *any* block level elements contained within.

  4. Anonymous
    Unregistered
    Posted 9 years ago #

    Is there any way to stop wordpress from automatically inserting the tags before and after the content? It's bugging the hell out of me.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.