def _get_offset(self, token):
        raw = ''.join(map(text_type, self._flatten_up_to_token(token)))
        line = raw.splitlines()[-1]
        # Now take current offset into account and return relative offset.
        full_offset = len(line) - len(self.char * (self.width * self.indent))
        return full_offset - self.offset
dataset/ETHPy150Open andialbrecht/sqlparse/sqlparse/filters.py/ReindentFilter._get_offset/original