Edgewall Software

Changeset 458 for trunk/genshi/input.py


Ignore:
Timestamp:
Nov 23, 2006, 12:28:15 PM (17 years ago)
Author:
cmlenz
Message:

Fix parsing of processing instructions in HTML input.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/genshi/input.py

    r403 r458  
    350350
    351351    def handle_pi(self, data):
    352         target, data = data.split(maxsplit=1)
    353         data = data.rstrip('?')
     352        target, data = data.split(None, 1)
     353        if data.endswith('?'):
     354            data = data[:-1]
    354355        self._enqueue(PI, (target.strip(), data.strip()))
    355356
Note: See TracChangeset for help on using the changeset viewer.