spacing now initialised at first line of <?php block, and kept for rest of block.
also fixed \n else glitch. needs more comprehensive test-suite, but looks reasonable
so far.