@@ -174,7 +174,7 @@ def goahead(self, end):
174174 k = self .parse_pi (i )
175175 if k < 0 :
176176 break
177- i = i + k
177+ i = i + k
178178 continue
179179 if rawdata .startswith ("<!" , i ):
180180 # This is some sort of declaration; in "HTML as
@@ -195,16 +195,16 @@ def goahead(self, end):
195195 name = match .group (1 )
196196 self .handle_charref (name )
197197 i = match .end (0 )
198- if rawdata [i - 1 ] != ';' :
199- i = i - 1
198+ if rawdata [i - 1 ] != ';' :
199+ i = i - 1
200200 continue
201201 match = entityref .match (rawdata , i )
202202 if match :
203203 name = match .group (1 )
204204 self .handle_entityref (name )
205205 i = match .end (0 )
206- if rawdata [i - 1 ] != ';' :
207- i = i - 1
206+ if rawdata [i - 1 ] != ';' :
207+ i = i - 1
208208 continue
209209 else :
210210 self .error ('neither < nor & ??' )
@@ -233,15 +233,15 @@ def goahead(self, end):
233233 # Internal -- parse processing instr, return length or -1 if not terminated
234234 def parse_pi (self , i ):
235235 rawdata = self .rawdata
236- if rawdata [i :i + 2 ] != '<?' :
236+ if rawdata [i :i + 2 ] != '<?' :
237237 self .error ('unexpected call to parse_pi()' )
238- match = piclose .search (rawdata , i + 2 )
238+ match = piclose .search (rawdata , i + 2 )
239239 if not match :
240240 return - 1
241241 j = match .start (0 )
242- self .handle_pi (rawdata [i + 2 : j ])
242+ self .handle_pi (rawdata [i + 2 : j ])
243243 j = match .end (0 )
244- return j - i
244+ return j - i
245245
246246 def get_starttag_text (self ):
247247 return self .__starttag_text
@@ -276,7 +276,7 @@ def parse_starttag(self, i):
276276 j = match .start (0 )
277277 # Now parse the data between i + 1 and j into a tag and attrs
278278 attrs = []
279- if rawdata [i :i + 2 ] == '<>' :
279+ if rawdata [i :i + 2 ] == '<>' :
280280 # SGML shorthand: <> == <last open tag seen>
281281 k = j
282282 tag = self .lasttag
@@ -327,7 +327,7 @@ def parse_endtag(self, i):
327327 if not match :
328328 return - 1
329329 j = match .start (0 )
330- tag = rawdata [i + 2 :j ].strip ().lower ()
330+ tag = rawdata [i + 2 :j ].strip ().lower ()
331331 if rawdata [j ] == '>' :
332332 j = j + 1
333333 self .finish_endtag (tag )
0 commit comments