issue #16 - double spaces correction for writer routines