Rationalized / simplified line.write()

The old implementation was hard to read and hence hard to edit - which
in turn limited our ability to add / remove elements to .single-line