comparison genshi/template/markup.py @ 870:1ea88e82713d

Apply patch Felix Schwarz that finally fixes the duplicated output in match template processing. Thanks so much!
author cmlenz
date Thu, 18 Feb 2010 09:17:45 +0000
parents 4376010bb97e
children fcf378812238
comparison
equal deleted inserted replaced
869:38c44e2f4232 870:1ea88e82713d
356 pre_end = idx + 1 356 pre_end = idx + 1
357 if 'match_once' not in hints and 'not_recursive' in hints: 357 if 'match_once' not in hints and 'not_recursive' in hints:
358 pre_end -= 1 358 pre_end -= 1
359 inner = _strip(stream) 359 inner = _strip(stream)
360 if pre_end > 0: 360 if pre_end > 0:
361 inner = self._match(inner, ctxt, end=pre_end, **vars) 361 inner = self._match(inner, ctxt, start=start,
362 end=pre_end, **vars)
362 content = self._include(chain([event], inner, tail), ctxt) 363 content = self._include(chain([event], inner, tail), ctxt)
363 if 'not_buffered' not in hints: 364 if 'not_buffered' not in hints:
364 content = list(content) 365 content = list(content)
365 content = Stream(content) 366 content = Stream(content)
366 367
Copyright (C) 2012-2017 Edgewall Software