private void RFill(HtmlDtd.FillCode code)
 {
     if (code == HtmlDtd.FillCode.EAT)
     {
         this.normalizerContext.hasSpace = false;
         this.normalizerContext.eatSpace = true;
     }
     else if (code == HtmlDtd.FillCode.PUT)
     {
         this.normalizerContext.eatSpace = false;
     }
 }
Exemple #2
0
 private void RFill(HtmlDtd.FillCode code)
 {
     if (code == HtmlDtd.FillCode.EAT)
     {
         normalizerContext.hasSpace = false;
         normalizerContext.eatSpace = true;
         return;
     }
     if (code == HtmlDtd.FillCode.PUT)
     {
         normalizerContext.eatSpace = false;
     }
 }
Exemple #3
0
 private void LFill(HtmlDtd.FillCode codeLeft)
 {
     normalizerContext.lastCh = '\0';
     if (normalizerContext.hasSpace)
     {
         if (codeLeft == HtmlDtd.FillCode.PUT)
         {
             if (!lineStarted)
             {
                 StartParagraphOrLine();
             }
             output.OutputSpace(1);
             normalizerContext.eatSpace = true;
         }
         normalizerContext.hasSpace = (codeLeft == HtmlDtd.FillCode.NUL);
     }
 }
 private void LFill(HtmlDtd.FillCode codeLeft)
 {
     this.normalizerContext.LastCh = '\0';
     if (this.normalizerContext.HasSpace)
     {
         if (codeLeft == HtmlDtd.FillCode.PUT)
         {
             if (!this.lineStarted)
             {
                 this.StartParagraphOrLine();
             }
             this.output.OutputSpace(1);
             this.normalizerContext.EatSpace = true;
         }
         this.normalizerContext.HasSpace = (codeLeft == HtmlDtd.FillCode.NUL);
     }
 }