def _format_line(self,side,flag,linenum,text):
try:<EOL><INDENT>linenum = '<STR_LIT>' % linenum<EOL>id = '<STR_LIT>' % (self._prefix[side],linenum)<EOL><DEDENT>except TypeError:<EOL><INDENT>id = '<STR_LIT>'<EOL><DEDENT>text=text.replace("<STR_LIT:&>","<STR_LIT>").replace("<STR_LIT:>>","<STR_LIT>").replace("<STR_LIT:<>","<STR_LIT>")<EOL>text = text.replace('<STR_LIT:U+0020>','<STR_LIT>').rstrip()<EOL>return '<STR_LIT>'% (id,linenum,text)<EOL>
Returns HTML markup of "from" / "to" text lines

        side -- 0 or 1 indicating "from" or "to" text
        flag -- indicates if difference on line
        linenum -- line number (used for line number column)
        text -- line text to be marked up