Defines a number of ways to format multi-line text for proper renderring.
Implementation taken from the now deprecated InsertTextMode class.
Mode where each line (after the first) is preceded by a <br> tag.
Mode where each line is wrapped with a <p> element.
Creates a new instance with a name.
name Textual description of the mode.
return "InsertMode[" + _name + "]";
Invoked by the
component to write the next line.
the line number of the line, starting with 0 for the first
the String for the current line.
to send output to.
if true, then the output should be unfiltered