FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 506 : pasting code, tab characters are not converted into spaces
Last modified: 2007-01-29 16:21
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
ASSIGNED
Resolution:
-
Pr
i
ority:
P4
Severity:
enhancement
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
Reporter:
fjen
Assigned To:
fry
Attachment
Type
Created
Size
Actions
Description
: Opened: 2007-01-28 09:31
os-x, Processing 0123
when you paste code into the editor that contains tabs, they are not translated into spaces as
are tabs insterted via keyboard.
Additional Comment
#1 From fjen 2007-01-29 08:15
sorry, my post was kindof misleading, it's about tabs as in tab characters not as in editor-tabs.
should read:
when you paste code that contains tabs into the editor, they are not translated into spaces as
are tabs insterted via keyboard.
Additional Comment
#2 From fry 2007-01-29 16:21
workaround: use Auto Format after paste.
technical: problem is that tabs are converted to spaces via EditorListener,
which isn't used by Paste. either run paste by sending key events (ala
Terminal apps) or do a quick conversion of tab characters to spaces when
pulling text from the keyboard (use tab size pref).