Compare commits

..

2 Commits

Author SHA1 Message Date
chaim f8022279ad fix: change date format from dd/mm/yyyy to dd.mm.yyyy
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-09 21:24:18 +00:00
chaim 763638abd5 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>
2026-04-09 21:21:44 +00:00
2 changed files with 4 additions and 4 deletions
@@ -216,8 +216,8 @@ class DirectAccessReportGenerator
private function addCheckboxData(array &$data, array $params): void private function addCheckboxData(array &$data, array $params): void
{ {
$CHK = '☑'; $CHK = "\u{00A0}";
$UNCHK = '☐'; $UNCHK = "\u{00A0}";
$urgency = $params['urgencyLevel'] ?? ''; $urgency = $params['urgencyLevel'] ?? '';
$data['chk_urgency_regular'] = ($urgency === 'רגיל') ? $CHK : $UNCHK; $data['chk_urgency_regular'] = ($urgency === 'רגיל') ? $CHK : $UNCHK;
@@ -392,7 +392,7 @@ class DirectAccessReportGenerator
{ {
if (!$date) return ''; if (!$date) return '';
if (preg_match('/^(\d{4})-(\d{2})-(\d{2})$/', $date, $m)) { if (preg_match('/^(\d{4})-(\d{2})-(\d{2})$/', $date, $m)) {
return "{$m[3]}/{$m[2]}/{$m[1]}"; return "{$m[3]}.{$m[2]}.{$m[1]}";
} }
return $date; return $date;
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "LegalAssistance", "name": "LegalAssistance",
"version": "2.0.5", "version": "2.0.7",
"acceptableVersions": [">=8.0.0"], "acceptableVersions": [">=8.0.0"],
"php": [">=8.1"], "php": [">=8.1"],
"releaseDate": "2026-04-09", "releaseDate": "2026-04-09",