Skip to content

Commit dad9dc7

Browse files
elderingvmcj
authored andcommitted
Do display time wrapping in the template, not in the controller.
This fixes #1786 because now the text that gets quoted is not wrapped yet, so it only gets wrapped once, at the time it is made quoted. (cherry picked from commit d0c2487)
1 parent 57bbb13 commit dad9dc7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

webapp/src/Controller/Jury/ClarificationController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function viewAction(int $id): Response
202202

203203
$data['answered'] = $clar->getAnswered();
204204

205-
$data['body'] = Utils::wrapUnquoted($clar->getBody(), 78);
205+
$data['body'] = $clar->getBody();
206206
$clardata['list'][] = $data;
207207
}
208208

webapp/templates/jury/clarification.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Jury
110110
</div>
111111
</div>
112112

113-
<div class="card-text"><pre class="output-text bg-light p-3">{{ clar.body }}</pre></div>
113+
<div class="card-text"><pre class="output-text bg-light p-3">{{ clar.body|wrapUnquoted(78) }}</pre></div>
114114

115115
</div>
116116
</div>

0 commit comments

Comments
 (0)