fix: add non-breaking space after checkbox characters
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) <noreply@anthropic.com>
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user