BBEdit Table-Pasting Broken Somehow???
Posted August 21st, 2005 @ 09:17pm by Erik J. Barzeski
Did Safari 2.0 (412.2.2 - the one you get with Security Update 2005-007) break table-copying behavior for anyone else, or just me?
I used this page as a test. I pasted into BBEdit (8.2.3). Safari had been working properly for quite some time, but just now - several times - it pasted with one piece of information per line. Not tab-delimited.
P.S. Title changed from "Safari Table-Copying Broken Again?" to what you see now.
Posted 21 Aug 2005 at 9:33pm #
Hmm. Sort of works for me. I copied several lines and pasted into TextEdit and the first two columns are on their own line but the rest of the columns are on a third line correctly separated by tabs. Interesting.
Posted 21 Aug 2005 at 9:35pm #
Incidentally, pasting (into a plain text, not rich text) TextEdit document seems to work fine. SubEthaEdit works, too (tabbed content). It works in Xcode, Photoshop, and a few others.
But not in BBEdit (on my machine). Hmmm… I haven't changed any BBEdit settings lately.
Posted 22 Aug 2005 at 10:17am #
It also pastes fine into Excel...
Posted 22 Aug 2005 at 10:34am #
Something's screwy with my copy of BBEdit or something.
Posted 22 Aug 2005 at 11:47am #
As far as I can tell, this is happening because
a) Safari puts tab delimited data in NSStringPboardType on the pasteboard. It also puts out Rich Text and a Web Archive.
b) The ut16 type (unicode text) that BBEdit and other Carbon applications see contains unicode data with one cell per line, which isn't what the NSStringPboardType (what Cocoa applications normally see) contains.
I don't know who is responsible for the lossy conversion.
rdar://4226041