Does not treat white space properly
-
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
- The topic ‘Does not treat white space properly’ is closed to new replies.