• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter seththomasrasmussen

    (@seththomasrasmussen)

    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.

    Thread Starter seththomasrasmussen

    (@seththomasrasmussen)

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

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fix automatic insertion of <p></p> or allow toggle’ is closed to new replies.