• I recently noticed that the message within the HTML emails that are delivered by Contact Form 7 tend to ignore line breaks. For example, a sender keys in:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    1. Suspendisse pulvinar dignissim ex eu consequat.
    2. In fringilla felis et elit viverra, nec tempor nulla tincidunt.
    3. Curabitur tempor mauris lorem, quis egestas arcu vulputate non.
    4. Cras dictum viverra erat, eget pellentesque tortor molestie convallis.
    5. Praesent id orci eget lacus egestas dignissim.

    The received message will be:

    Lorem ipsum dolor sit amet, consectetur adipiscing elit. 1. Suspendisse pulvinar dignissim ex eu consequat. 2. In fringilla felis et elit viverra, nec tempor nulla tincidunt. 3. Curabitur tempor mauris lorem, quis egestas arcu vulputate non. 4. Cras dictum viverra erat, eget pellentesque tortor molestie convallis. 5. Praesent id orci eget lacus egestas dignissim.

    All line breaks vanished. Is there a resolution to this glitch?

    Help is much appreciated. Thank you.

    https://wordpress.org/plugins/contact-form-7/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Try deactivating all other plugins and switching to the default theme. If you have changed code in Contact Form 7, also revert it.

    Thread Starter Jason Wong

    (@eljkmw)

    Kon’nichi wa Miyoshi-san,

    I’ve tried what you’ve suggested, but still in vain. I’m using CF7 1.10.0.1 with WP 2.9.2.
    I found an old support post, which you shared an update. Can this update be applied to CF7 1.10.0.1 …?

    Please advise me. Arigatou gozaimashita.

    Jason

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    I’m using CF7 1.10.0.1 with WP 2.9.2.

    Are you sure?!

    Thread Starter Jason Wong

    (@eljkmw)

    Yes, bro. Sorry to surprise you that this dinosaur (me) has websites still operating on WP 2.9.2.

    Anyway, I’ve been thoroughly searching through your archives, and found this.

    == Changelog ==

    = 2.3 =

    * The required WordPress version has been changed and now requires WordPress 2.9 or higher. If you use WordPress 2.8, you will need to upgrade WordPress.
    * When you insert multi-line text input into the message body of HTML-formatted mail, Contact Form 7 automatically applies an ‘autop’ (auto paragraph) filter to the text. This makes it so that the original user input styles remain — and does not break paragraph styles in the HTML view.

    I’m relieved to find you’ve worked on the solution in CF7 2.3. With this, I’ll search for another version that’s still compatible to WP 2.9.2. It’s probably up to CF7 2.4.6, just before 3.0.

    よかったですね (^_^)

    Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thank you so much for using Contact Form 7 for such a long time, but I strongly recommend upgrading WordPress and plugins to the latest versions soon. Your site is exposed to really serious risk.

    Thread Starter Jason Wong

    (@eljkmw)

    Dear Miyoshi-san,

    Thank you for your advice. Unfortunately, upgrading 3 websites to their latest WP and plugins will be daunting tasks to undertake. Besides, I’m happy that they’re running fine for years.

    Anyway, I’ve upgraded their CF9 versions from 1.10.0.1 to 2.4.2, and all are well. Except that one of them is behaving strangely for lists in the message. Instead of showing,

    1.
    2.
    3.

    they are showing,

    1. 2. 3.

    Could one of the plugin’s function in “/includes/formatting.php” be recognising the numbers as a list? There hasn’t been any problems with paragraphing after the upgrade.

    Any ideas?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Text Field ignores line breaks’ is closed to new replies.