Title: [Plugin: HTML Import 2] Including Line Breaks?
Last modified: August 20, 2016

---

# [Plugin: HTML Import 2] Including Line Breaks?

 *  Resolved [suntower](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-html-import-2-including-line-breaks/)
 * Is there a way to add line breaks? I’m trying to import a bunch of old Robohelp
   files. The results work OK, but there are no line breaks so the body of each 
   post ends up being ‘minified’ in a very unfriendly looking mess.
 * I was wondering if there was an option to do this (perhaps after every div or
   p) before I started trying to hack the plug.
 * TIA,
 * —JC
 * [http://wordpress.org/extend/plugins/import-html-pages/](http://wordpress.org/extend/plugins/import-html-pages/)

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

 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-html-import-2-including-line-breaks/#post-2835127)
 * You’ll have to hack it, I’m afraid.
 * In html-importer.php, comment out this line, around line 226:
 *     ```
       // reduce line breaks and remove empty tags
       $string = str_replace( '\n', ' ', $string );
       ```
   
 * and these two lines around 335 or so:
 *     ```
       $doc->preserveWhiteSpace = false;
       $doc->formatOutput = false;  // speed this up
       ```
   
 *  Thread Starter [suntower](https://wordpress.org/support/users/suntower/)
 * (@suntower)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-html-import-2-including-line-breaks/#post-2835128)
 * Wow. Message in a bottle. 😉
 * It’s a bit late for what I was doing at the time, but I do appreciate the reply.
   Likely will come in handy.
 * Cheers,
 * —JC
 *  Plugin Author [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * (@sillybean)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-html-import-2-including-line-breaks/#post-2835129)
 * Sorry about that. I’d fallen way behind on forum replies!

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

The topic ‘[Plugin: HTML Import 2] Including Line Breaks?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/import-html-pages.svg)
 * [HTML Import 2](https://wordpress.org/plugins/import-html-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/import-html-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/import-html-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/import-html-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/import-html-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/import-html-pages/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Stephanie Leary](https://wordpress.org/support/users/sillybean/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-html-import-2-including-line-breaks/#post-2835129)
 * Status: resolved