def _fix_sentence_endings(self, chunks):
i = <NUM_LIT:0><EOL>patsearch = self.sentence_end_re.search<EOL>while i < len(chunks)-<NUM_LIT:1>:<EOL><INDENT>if chunks[i+<NUM_LIT:1>] == "<STR_LIT:U+0020>" and patsearch(chunks[i]):<EOL><INDENT>chunks[i+<NUM_LIT:1>] = "<STR_LIT:U+0020>"<EOL>i += <NUM_LIT:2><EOL><DEDENT>else:<EOL><INDENT>i += <NUM_LIT:1><EOL><DEDENT><DEDENT>
_fix_sentence_endings(chunks : [string])

        Correct for sentence endings buried in 'chunks'.  Eg. when the
        original text contains "... foo.\\nBar ...", munge_whitespace()
        and split() will convert that to [..., "foo.", " ", "Bar", ...]
        which has one too few spaces; this method simply changes the one
        space to two.