From dd8e57fc6fd9a1b51f6212b3fabb6dacfc679cac Mon Sep 17 00:00:00 2001
From: ulrich@undisclosed <ulrich@ulrich-vaio>
Date: Tue, 21 Apr 2020 16:22:53 +0000
Subject: [PATCH] Code fuer die Transformation ueberarbeitet

---
 src/de/uhilger/wbx/web/AdocServlet.java |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/de/uhilger/wbx/web/AdocServlet.java b/src/de/uhilger/wbx/web/AdocServlet.java
index 73f459e..5ab61c9 100644
--- a/src/de/uhilger/wbx/web/AdocServlet.java
+++ b/src/de/uhilger/wbx/web/AdocServlet.java
@@ -31,11 +31,8 @@
 import javax.servlet.http.HttpServletResponse;
 import java.util.Map;
 
-import static org.asciidoctor.AttributesBuilder.attributes;
-import static org.asciidoctor.OptionsBuilder.options;
 import static org.asciidoctor.Asciidoctor.Factory.create;
 import org.asciidoctor.Asciidoctor;
-import org.asciidoctor.OptionsBuilder;
 
 
 
@@ -91,7 +88,7 @@
         die PDF-Datei noch nicht existiert
       */
       String pdf = request.getParameter(PDF);
-      if(null != pdf && pdf.length() > 0 && pdf.equalsIgnoreCase(Boolean.TRUE.toString())) {
+      if(null != pdf && pdf.equalsIgnoreCase(Boolean.TRUE.toString())) {
         File pdffile = new File(adocfile.getParentFile(), fname + DOT + PDF);
         if(!pdffile.exists() || adocfile.lastModified() > pdffile.lastModified()) {
           transform(absname, PDF);

--
Gitblit v1.9.3