ThePix / QuestJS

A major re-write of Quest that is written in JavaScript and will run in the browser.
MIT License
66 stars 12 forks source link

First-char/last-char spaces in OutputTextNoBr will be preserved #67

Closed bpetersonisme closed 2 years ago

bpetersonisme commented 2 years ago

Added some code to preserve spaces at the end of OutputTextNoBr. This allows for syntax like

OutputTextNoBr("Hello ");

if(someVar == true) { msg("WORLD") } else { msg("Universe!") }

Which I feel reads a little better. I also changed the code word to OUTPUTTEXTNOBR instead of SAMELINE, which I feel is a little more consistent and less likely to run into accidental collisions down the line.