• For me the challenge in transferring html to WP is not in the large quantities of files but rather in the different treatment of white space by html and WordPress.

    I like to write my posts and pages first in pure html in Eclipse and transfer them to WP when ripe.

    Eclipse conveniently inserts line breaks and tabs for readability of html in accordance with html standard.

    If I feed this html to WP unprocessed then WP converts all new lines into <br /> tags. In addition, the cache and html plugins that I use (W3 Total Cache and Autoptimize), preserve all that white space which in some cases caused Google PageSpeed Insights to complain that html is not optimized.

    If I replace all new lines by spaces in the text editor then <pre> tags suffer.

    I hoped that your plugin that claims to be able to import well-formed html into WP, would help. However, I have not been able to get it done.

    I tried without marking “Clean up bad ( Word, Frontpage ) HTML” in the plugin settings and it replaced all line breaks into <br /> which was simply incorrect.

    When I marked “Clean up bad ( Word, Frontpage ) HTML” then it replaced line breaks by spaces breaking <pre> tags.

    Did I miss any setting of this plugin that would do the job?

    Here is an example of a page with <pre> tags: Step by step Java Native Interface (JNI) guide and tutorial. It was transferred to WP by some ad-hoc procedures that I developed before finding this plugin.

    Thanks in advance.

    Baruch Youssin

    https://www.ads-software.com/plugins/import-html-pages/

Viewing 2 replies - 1 through 2 (of 2 total)
  • somewhat different…. I am importing a html file which refers to images and attachments in a folder. The folder name has white spaces between the names eg This is another one. The plugin does not recognise these folders even if properly reference from the html file.

    Thread Starter byoussin

    (@byoussin)

    After no response I have removed this plugin and found an alternative way, by minifying the body part of my html using https://kangax.github.io/html-minifier/ before transferring to WP.

    Works fine for me.

    I am posting this because Google returns this page on the top of its search results for

    transfer html from Eclipse to wordpress

    .

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Does not treat white space properly’ is closed to new replies.