Using ecto for the Mac, 3.0b47
I'm trying to post pre-formatted text to my blog in two different ways, and both of them don't work because ecto keeps removing whitespace from my posts for no apparent reason. Two examples below:
No 1: Switch ecto to HTML view and paste this piece of HTML code:
<div style="font-family: Consolas; font-size: 11pt; color: black; background: white;">
<p style="margin: 0px;"> <span style="color: blue;">public</span> <span style="color: blue;">enum</span> <span style="color: #2b91af;">MyEnum</span> {</p>
<p style="margin: 0px;"> FirstElement,</p>
<p style="margin: 0px;"> NextElement</p>
<p style="margin: 0px;"> }</p>
</div>
As you can see, this includes entities for formatting purposes. Now, switch ecto to the "rich text" view. The formatting will appear correct, with the "middle" two lines indented a bit. Now, switch back to HTML view - now the entities are gone and the formatting is broken.
No 2: Switch to HTML view again and replace all the content with this:
<pre>
blah - indented two spaces
blubber - indented four spaces
</pre>
(This piece of code is intended to contain spaces - I hope they are going to be preserved in this post. EDIT: I just noticed that the spaces don't actually appear on these forums although the editor is still showing them! So note - there are two spaces in front of the line that says "two spaces" and four spaces in front of the line that says "four spaces".)
Switch back to rich text view and the two formatted lines will appear on the same level of indentation. Switch back to HTML and you'll see that the spaces are gone.
This is quite a severe problem for me because it makes it very hard to post code to my blogs. I have experimented with the various different "paste ..." commands on the Edit menu, but I haven't found a way to prevent ecto from killing whitespace simply by switching back and forth between the editing modes. Also, the same thing happens when publishing a post - even if I don't switch editing modes.
Regards
Oliver
