From 9b54da4bee44d9befe93514a28fda2a1b53e589b Mon Sep 17 00:00:00 2001 From: Alex Nikonov Date: Mon, 1 Jul 2024 10:10:19 +0200 Subject: [PATCH] fix: missing styles for some reports components (#54) Refs: #35 --- .../polarion/extension/pdf/exporter/converter/PdfConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/ch/sbb/polarion/extension/pdf/exporter/converter/PdfConverter.java b/src/main/java/ch/sbb/polarion/extension/pdf/exporter/converter/PdfConverter.java index 232eccc..c355261 100644 --- a/src/main/java/ch/sbb/polarion/extension/pdf/exporter/converter/PdfConverter.java +++ b/src/main/java/ch/sbb/polarion/extension/pdf/exporter/converter/PdfConverter.java @@ -168,7 +168,7 @@ String getCssContent( String content = placeholderProcessor.replacePlaceholders(documentData, exportParams, css); String processed = velocityEvaluator.evaluateVelocityExpressions(documentData, content); - return (exportParams.getDocumentType() == DocumentType.WIKI) ? appendWikiCss(processed) : processed; + return (exportParams.getDocumentType() != DocumentType.DOCUMENT) ? appendWikiCss(processed) : processed; } @VisibleForTesting