allow whitespace around the UNDO marker and text following it