Bug 506 : pasting code, tab characters are not converted into spaces
Last modified: 2007-01-29 16:21




Status:
ASSIGNED
Resolution:
-
Priority:
P4
Severity:
enhancement

 

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).