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.

Customizing XHTML formatting to use only BR tags

June 15, 2009 2:18pm

Subscribe [2]
  • #1 / Jun 15, 2009 2:18pm

    quena

    66 posts

    If I wanted to have XHTML formatting produce BR tags only, and never P tags, how would I do that?

    Background: I have content that is served both through the web site (where P tags are fine) and by email. The email template uses tables, inline styles, etc. to display properly in most email clients. One quirk of Yahoo webmail is that paragraph tags aren’t displayed properly, but double-line breaks are. And Yahoo is the largest webmail reader used by my readership.

    The control panel allows me to turn Auto BR on and off (CP Home ›  Admin ›  Weblog Administration ›  Field Groups ›  Custom Fields ›  Field Formatting Options), but I don’t see where I can have it change double line breaks into double BR tags. Any thoughts on how to tackle this are welcome.

    Update: The documentation doesn’t seem to shed any light on this.

  • #2 / Jun 15, 2009 3:39pm

    Ingmar

    29245 posts

    If I wanted to have XHTML formatting produce BR tags only, and never P tags, how would I do that?

    Use “Formatting: Auto <br>” instead of “Formatting: XHTML”. Or, if you need even more control, select “None” and insert all the markup you need yourself, or have a custom formatting plugin to do this for you.

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

ExpressionEngine News!

#eecms, #events, #releases