It looks like the write() function may be trimming the spaces. Look at the following node:
write() removes trailing spacesIn reply to Re^3: Preserve trailing spaces with write format?
by synistar
in thread Preserve trailing spaces with write format?
by kurt_kober
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |