Ticket #368: genshi_HTML_PI.2.diff
| File genshi_HTML_PI.2.diff, 627 bytes (added by Neil Muller, 11 years ago) |
|---|
-
genshi/input.py
401 401 self._enqueue(TEXT, text) 402 402 403 403 def handle_pi(self, data): 404 target, data = data.split(None, 1)405 404 if data.endswith('?'): 406 405 data = data[:-1] 406 try: 407 target, data = data.split(None, 1) 408 except ValueError: 409 # PI with no data 410 target = data 411 data = '' 407 412 self._enqueue(PI, (target.strip(), data.strip())) 408 413 409 414 def handle_comment(self, text):
