From 9e912212d73fe7371ef9dbd95373cffd485fe04e Mon Sep 17 00:00:00 2001
From: Rom1-B <8530352+Rom1-B@users.noreply.github.com>
Date: Tue, 19 May 2026 10:42:51 +0200
Subject: [PATCH] Fix: preserve HTML structure in Change and Problem
description
---
CHANGELOG.md | 1 +
inc/change.class.php | 2 +-
inc/problem.class.php | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 813e79f..4b3f9ee 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Fixed table formatting and border in PDF
- Fixed table cell size in PDF generation
+- Fixed Change and Problem description exported as a single unstructured text block
## [4.0.2] - 2025-09-30
diff --git a/inc/change.class.php b/inc/change.class.php
index 2d6a8a3..cd1b242 100644
--- a/inc/change.class.php
+++ b/inc/change.class.php
@@ -299,7 +299,7 @@ public static function pdfMain(PluginPdfSimplePDF $pdf, Change $job)
$pdf->displayText(
'' . sprintf(__('%1$s: %2$s') . '', __('Description'), ''),
- Toolbox::stripTags($job->fields['content']),
+ $job->fields['content'],
1,
);
diff --git a/inc/problem.class.php b/inc/problem.class.php
index f2bf915..ec4de9e 100644
--- a/inc/problem.class.php
+++ b/inc/problem.class.php
@@ -299,7 +299,7 @@ public static function pdfMain(PluginPdfSimplePDF $pdf, Problem $job)
$pdf->displayText(
'' . sprintf(__('%1$s: %2$s'), __('Description') . '', ''),
- Toolbox::stripTags($job->fields['content']),
+ $job->fields['content'],
1,
);