From 763638abd59cc0458bef804fa05d0629d785d85c Mon Sep 17 00:00:00 2001 From: Chaim Date: Thu, 9 Apr 2026 21:21:44 +0000 Subject: [PATCH] fix: add non-breaking space after checkbox characters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PHPWord's TemplateProcessor loses regular spaces between placeholder replacement values and adjacent text in RTL documents. Using NBSP (\u00A0) after ☑/☐ ensures Word preserves the spacing. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../SmartAssistant/Tools/DirectAccessReportGenerator.php | 4 ++-- manifest.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/custom/Espo/Modules/LegalAssistance/SmartAssistant/Tools/DirectAccessReportGenerator.php b/files/custom/Espo/Modules/LegalAssistance/SmartAssistant/Tools/DirectAccessReportGenerator.php index 1da4722..8c6ad4a 100644 --- a/files/custom/Espo/Modules/LegalAssistance/SmartAssistant/Tools/DirectAccessReportGenerator.php +++ b/files/custom/Espo/Modules/LegalAssistance/SmartAssistant/Tools/DirectAccessReportGenerator.php @@ -216,8 +216,8 @@ class DirectAccessReportGenerator private function addCheckboxData(array &$data, array $params): void { - $CHK = '☑'; - $UNCHK = '☐'; + $CHK = "☑\u{00A0}"; + $UNCHK = "☐\u{00A0}"; $urgency = $params['urgencyLevel'] ?? ''; $data['chk_urgency_regular'] = ($urgency === 'רגיל') ? $CHK : $UNCHK; diff --git a/manifest.json b/manifest.json index 23ce8aa..b65a21f 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name": "LegalAssistance", - "version": "2.0.5", + "version": "2.0.6", "acceptableVersions": [">=8.0.0"], "php": [">=8.1"], "releaseDate": "2026-04-09",