def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def _pad(self, s):
        return s + (self.bs - len(s) % self.bs) * chr(self.bs - len(s) % self.bs)