got to beginning of file before newline break def end(self)while self position lenself document charactersand self document charactersself position character !'\ 'self position + this completes the formatting of characters we can test it to see that it worksd document( insert(' ' insert(' ' insert(character(' 'bold=true) insert(character(' 'bold=true) insert(' ' insert('\ ' insert(character(' 'italic=true) insert(character(' 'italic=true) insert(character(' 'underline=true) insert(' ' insert(' 'print( stringhe* *lo / /o_rld cursor home( delete( insert(' 'print( stringhe* *lo /o_rld characters[ underline true print( string_he* *lo /o_rld