Logo Search packages:      
Sourcecode: qa-assistant version File versions  Download package

def checklist::CheckList::__Test::unpangoize_output (   self,
  output 
)

Removes pango tags and unescapes pango special chars from output.

Arguments:
output -- output string to remove pango from.

This does the opposite of pangoize_output.  It removes pango span
tags which provide colorization to the output strings and replaces
escaped pango special chars with their ASCII character.

Returns: string with pango tags removed and special chars resotred.

Definition at line 507 of file checklist.py.

00507                                        :
        '''Removes pango tags and unescapes pango special chars from output.

        Arguments:
        output -- output string to remove pango from.

        This does the opposite of pangoize_output.  It removes pango span
        tags which provide colorization to the output strings and replaces
        escaped pango special chars with their ASCII character.

        Returns: string with pango tags removed and special chars resotred.
        '''
        
        # Remove the span tags
        output = self.__unspan.match(output).expand(r'\g<1>\g<3>\g<5>')
        # Unescape special chars
        output = output.replace('&amp;', '&')
        output = output.replace('&lt;', '<')
        output = output.replace('&gt;', '>')

        return output

    def pangoize_output(self, resolution, output):


Generated by  Doxygen 1.6.0   Back to index