def _in_multi_line(self, line):

        # we are only looking for explicitly joined lines here, not
        # implicit ones (i.e. brackets, braces etc.).  this is just to
        # guard against the possibility of modifying the space inside of
        # a literal multiline string with unfortunately placed
        # whitespace

        current_state = (self.backslashed or self.triplequoted)

        if re.search(r"\\$", line):
            self.backslashed = True
        else:
            self.backslashed = False

        triples = len(re.findall(r"\"\"\"|\'\'\'", line))
        if triples == 1 or triples % 2 != 0:
            self.triplequoted = not self.triplequoted

        return current_state
Regression test for #11709 - when testing for fk excluding (when exclude is
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/mako/pygen.py/PythonPrinter._in_multi_line--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.2/tests/regressiontests/admin_validation/tests.py/ValidationTestCase.test_fk_exclusion