def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def serialize(self, value, display=False):
        if value.lower() in log.COLORS:
            return encode(value.lower())
        return ""