out_str += str("pattern").ljust(ts * 4) + ':' + str(
            self.restriction.pattern) + "\n"