[new] replacement document for new line

one can choose the replacement document when a new line is discarded.
For example, this can be used to render scala code: between to
statements you can have either a new line or a semicolon if it fits on
one line