console paste whitespace behavior

Suggestions that have been added to the game.

Moderator: ickputzdirwech

Post Reply
GopherAtl
Fast Inserter
Fast Inserter
Posts: 177
Joined: Sat Jan 31, 2015 7:54 pm
Contact:

console paste whitespace behavior

Post by GopherAtl »

lua doesn't care about newlines, except that they are whitespace - not sure if you control this behavior or if the operating system is doing it automatically, but if it is factorio stripping the newlines and tabs from pasted text, could we get them replaced with spaces instead of removed entirely? To paste test code in I have to make sure there's spaces at the end of certain lines - for example, if a line is just "end" and the next line begins with call to print(), the result pasted is endprint(...) which errors.

I debated here or the modding interface section for this, ultimately it's not really about the modding interface at all, even though it's in the context of mod development and testing that I'm always doing it.
My Mods:
Nixie Tubes - numeric displays for your circuit networks!
Logistic Combinators - use logistics values in circuit logic! -
Autowire - automate red/green wire connections

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: console paste whitespace behavior

Post by ssilk »

Couldn't this be declared as bug?
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: console paste whitespace behavior

Post by Oxyd »

Bug or not, I just implemented it. It'll be in 0.12.5.

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: console paste whitespace behavior

Post by ssilk »

Nice.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

Post Reply

Return to “Implemented Suggestions”