Title: Formatting data
Last modified: January 19, 2019

---

# Formatting data

 *  Resolved [dionwiggins](https://wordpress.org/support/users/dionwiggins/)
 * (@dionwiggins)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/formatting-data/)
 * Great plugin. I have 1 small issue with formatting when using HTML emails. Line
   breaks are ignored in HTML format, so the content appears on 1 line. Is there
   any way to format the content so that line breaks can be handed when sending 
   HTML emails? If not, a great feature update would be to read the HTML format 
   flag on the email and use <br> when it is HTML.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [apasionados](https://wordpress.org/support/users/apasionados/)
 * (@apasionados)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/formatting-data/#post-11107658)
 * Hi [@dionwiggins](https://wordpress.org/support/users/dionwiggins/). The formatting
   should be ok even in HTML email and it should use `<br>` tags. Next week our 
   developers will have a look.
 * Best regards from Spain.
 *  Thread Starter [dionwiggins](https://wordpress.org/support/users/dionwiggins/)
 * (@dionwiggins)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/formatting-data/#post-11107677)
 * Thanks for the quick response. Look forward to hearing from the developers next
   week 🙂
 *  [Serhi Holoborodko](https://wordpress.org/support/users/holoborodk/)
 * (@holoborodk)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/formatting-data/#post-11677892)
 * Good day!
    Tell me, is the formatting issue resolved? How to correctly write 
   a construction with a tag <br>
 *  Plugin Author [apasionados](https://wordpress.org/support/users/apasionados/)
 * (@apasionados)
 * [6 years, 12 months ago](https://wordpress.org/support/topic/formatting-data/#post-11678948)
 * There is a check included for this:
 *     ```
       if(wpautop($array['body']) == $array['body']) // The email is of HTML type
       $lineBreak = "<br/>";
       else
       $lineBreak = "\n";
       ```
   
 * But we just tested it with the latest version and there it doesn’t detect the
   HTML email type.
 * We will debug this.
 * Best regards from Spain.
 *  Plugin Author [apasionados](https://wordpress.org/support/users/apasionados/)
 * (@apasionados)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/formatting-data/#post-11680035)
 * We just uploaded version 1.6.0 where we made some changes to the check for HTML
   or PLAIN text email.
 * We will test it the next days on more sites and release it if we don’t find any
   errors.
 * You can download it right now in the [Advanced View](https://wordpress.org/plugins/contact-form-7-lead-info-with-country/advanced/)
   or here directly: [v1.6.0](https://downloads.wordpress.org/plugin/contact-form-7-lead-info-with-country.1.6.0.zip).
 * Please drop a line here if you have tested and it worked for you or if you found
   problems.
 * Best regards from Spain.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Formatting data’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7-lead-info-with-country/assets/icon-128x128.
   png?rev=1043884)
 * [Lead info with country for Contact Form 7](https://wordpress.org/plugins/contact-form-7-lead-info-with-country/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7-lead-info-with-country/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7-lead-info-with-country/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7-lead-info-with-country/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7-lead-info-with-country/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7-lead-info-with-country/reviews/)

## Tags

 * [line-break](https://wordpress.org/support/topic-tag/line-break/)

 * 5 replies
 * 3 participants
 * Last reply from: [apasionados](https://wordpress.org/support/users/apasionados/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/formatting-data/#post-11680035)
 * Status: resolved