Copy should preserve tabs
By gnach... on September 06, 2010 20:22 (imported from Google Code)
From https://sourceforge.net/tracker/?func=detail&aid=2802498&group_id=67789&atid=518973
I have a set of perl scripts that generate tab separated output.
If I copy this output then the copy/paste buffer gets spaces instead of tabs (I tested in Terminal.app just to check it wasn't a copy/paste issue - there I get real tabs - not spaces).
This is 10.5.7 on an MB Pro with iTerm 0.9.6.20090415..
Example:
The output looks like
1 6 7 8 25 27
2 6 12 13 20 27
If I check that with od I see the tabs.
0000000 1 \t 6 \t 7 \t 8 \t 2 5 \t 2 7 \n 2
0000020 \t 6 \t 1 2 \t 1 3 \t 2 0 \t 2 7 \n
0000040
However - if I copy that, paste it to a file and od -c the file I see
0000000 1 6 7
0000020 8 2
0000040 5 2 7 \n 2
0000060 6 1 2
0000100 1 3 2 0
0000120 2 7 \n
0000127
This is playing havoc when this data gets pasted into other app's that are expecting tab separated data.
---
Yeah, preserving the tabs would be a nice feature.
---
Bah - the formatting of the post removed all the spaces in the last example
- If it helps any here's the hex dump to show where the spaces are
od -x test.txt
0000000 2031 2020 2020 3620 2020 2020 2020 3720
0000020 2020 2020 2020 3820 2020 2020 2020 3220
0000040 2035 2020 2020 3220 2037 320a 2020 2020
0000060 2020 3620 2020 2020 2020 3120 2032 2020
0000100 2020 3120 2033 2020 2020 3220 2030 2020
0000120 2020 3220 2037 000a
0000127