Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Working on Windows XP Notepad++ with Windows line endings.

When copying and pasting multiple lines into Putty window (connected to Ubuntu machine), it sends weird control characters.

How to convert the pasted text to Unix newlines? What setting should I have for emulation mode?

share|improve this question

1 Answer 1

Notepad++ can convert line endings: enter image description here

share|improve this answer
    
A good idea, but it didn't work. Still sending weird control characters. –  B Seven Mar 13 '12 at 22:04
    
I'd say that the problem isn't EOL characters, then. –  Andrew Lambert Mar 14 '12 at 2:18
    
Yes, you are right. I figured out that it's the tabs at the beginning of the lines (from Ruby). Is there a way to replace the tabs with spaces in Putty? I don't want to change the files... –  B Seven Mar 15 '12 at 19:10
    
Not that I'm aware of, though I could easily be wrong. –  Andrew Lambert Mar 15 '12 at 20:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.