Beispiel #1
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#endElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String)
  */
 public void EndElement(HTMLWorker worker, String tag)
 {
     worker.CarriageReturn();
     if (worker.IsPendingLI())
     {
         worker.EndElement(HtmlTags.LI);
     }
     worker.SetSkipText(false);
     worker.UpdateChain(tag);
     worker.ProcessList();
 }
Beispiel #2
0
 /**
  * @see com.itextpdf.text.html.simpleparser.HTMLTagProcessors#startElement(com.itextpdf.text.html.simpleparser.HTMLWorker, java.lang.String, java.util.Map)
  */
 public void StartElement(HTMLWorker worker, String tag, IDictionary <String, String> attrs)
 {
     worker.CarriageReturn();
     if (worker.IsPendingLI())
     {
         worker.EndElement(HtmlTags.LI);
     }
     worker.SetSkipText(true);
     worker.UpdateChain(tag, attrs);;
     worker.PushToStack(worker.CreateList(tag));
 }