Process footer and return the processed string

def get_ftr(self):
        """
        Process footer and return the processed string
        """
        if not self.ftr:
            return self.ftr

        width = self.size()[0]
        return re.sub(
            "%time", "%s\n" % time.strftime("%H:%M:%S"), self.ftr).rjust(width)