File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -953,8 +953,8 @@ class InBodyPhase(Phase):
953953 def __init__ (self , parser , tree ):
954954 Phase .__init__ (self , parser , tree )
955955
956- # Keep a ref to this for special handling of whitespace in <pre>
957- self .processSpaceCharactersNonPre = self .processSpaceCharacters
956+ # Set this to the default handler
957+ self .processSpaceCharacters = self .processSpaceCharactersNonPre
958958
959959 self .startTagHandler = utils .MethodDispatcher ([
960960 ("html" , self .startTagHtml ),
@@ -1087,7 +1087,7 @@ def processCharacters(self, token):
10871087 for char in token ["data" ]])):
10881088 self .parser .framesetOK = False
10891089
1090- def processSpaceCharacters (self , token ):
1090+ def processSpaceCharactersNonPre (self , token ):
10911091 self .tree .reconstructActiveFormattingElements ()
10921092 self .tree .insertText (token ["data" ])
10931093
You can’t perform that action at this time.
0 commit comments