A colleague emailed some JavaScript code. When I copied this code and pasted it into a BBEdit window, the first character of one line changed from a space to an ASCII 202.

I thought at first that the bad character was in the email message. However, when I copied and pasted that character into the MacASCII Display utility <http://www.synergycreations.com/freeware.html#ascii>, it display as a SPACE.

I displayed the email message as raw source. Here's the problematic line:

<p class=3DMsoNormal><span style=3D'font-size:11.0pt;font- family:"Calibri",=
"sans-serif";
color:black'>&nbsp; var conversion_value =3D 0.75;<o:p></o:p></span>=
</p>

Note that the "var conversion_value" line starts with a non-breaking space and a conventional space.

When I copy the text from the formatted mail message to the clipboard, it appears that the two spaces become an ASCII 202 and 32. When I paste the spaces into BBEdit, I get the untranslated ASCII in my text window. On the other hand, when I paste into MacASCII Display, I get two regular spaces. Although MacASCII Display's behavior may be erroneous, it's just what I'd like BBEdit to do when I'm transferring source code from email into a BBEdit window.

I'd like to avoid this problem in the future. I've checked BBEdit's preferences, and I can't find a "translate 'rich' text to source code text" option. Is this possible?

-- Ward

--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to:  <[EMAIL PROTECTED]>

Reply via email to