ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to prevent auto XHTML from replacing paragraphs with <br /> tag?

December 09, 2009 12:15pm

Subscribe [2]
  • #1 / Dec 09, 2009 12:15pm

    Marie-Jo Jones

    23 posts

    When I paste a text into a textarea of my EE site, all the paragraph marks (except for the very first opening tag and the very last closing tag) are replaced with a

    
    

    tag.

    How can I prevent auto XHTML from doing so?

    Semantically, it doesn’t make sense to break up a perfectly structured document built with sections, subsections and paragraphs into an ill-formed magma.

    Practically, it adds unnecessarily to the work required to build the EE pages.

    TIA for your advice.


    ——————————————

    PS1: I know a way around it would be to build and run a macro on my initial texts to replace all the single paragraph marks with double paragraph marks but I don’t find this workaround convenient on a day to day basis… It would not make the job of outside contributors particularly smooth either…

    PS2: I don’t want to deactivate the use of

    
    

    which might occasionally be useful and could be then entered with a shift+enter as in other applications.

    PS3: How does one enter tags

    
    

    in this forum posts without revealing the <pre><code> bits.

  • #2 / Dec 09, 2009 12:25pm

    Ingmar

    29245 posts

    How can I prevent auto XHTML from doing so?

    You can’t, that’s the point of using XHTML formatting.

    Semantically, it doesn’t make sense to break up a perfectly structured document built with sections, subsections and paragraphs into an ill-formed magma.

    Use “None” if you don’t want any markup applied.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases