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.
console paste whitespace behavior
Moderator: ickputzdirwech
console paste whitespace behavior
My Mods:
Nixie Tubes - numeric displays for your circuit networks!
Logistic Combinators - use logistics values in circuit logic! -
Autowire - automate red/green wire connections
Nixie Tubes - numeric displays for your circuit networks!
Logistic Combinators - use logistics values in circuit logic! -
Autowire - automate red/green wire connections
Re: console paste whitespace behavior
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: console paste whitespace behavior
Bug or not, I just implemented it. It'll be in 0.12.5.
Re: console paste whitespace behavior
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...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...