Print stripping out spaces inside quotes
Posted: Mon Apr 11, 2016 4:11 pm
This is an unimportant 'rainy day' sort of thing...
I expected the above to pad the variables neatly underneath each other, but the print function is stripping out the trailing spaces that are enclosed within the quotes and causing all the variables to directly follow after the ":"
Actually, when previewing this I noticed it did exactly the same the thing unless I marked it as code.
I've subsequently found out that html also strips out the excess blanks.
Is there some way of inserting spaces to shift text to the right without inserting visble characters?
Code: Select all
print "Local node name: " & localname
print "Global name: " & globalname
print "Group name: " & groupname
print "Local IP address: " & localIP
I expected the above to pad the variables neatly underneath each other, but the print function is stripping out the trailing spaces that are enclosed within the quotes and causing all the variables to directly follow after the ":"
Actually, when previewing this I noticed it did exactly the same the thing unless I marked it as code.
I've subsequently found out that html also strips out the excess blanks.
Is there some way of inserting spaces to shift text to the right without inserting visble characters?