From 2dd8e755cf086e1104c14a563775722ed470ba16 Mon Sep 17 00:00:00 2001 From: GlazerMann Date: Sat, 21 Dec 2024 16:11:39 -0600 Subject: [PATCH] Clean up line feeds inside of quotes --- Template.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Template.php b/Template.php index 21e186ea25..c2c95dc348 100644 --- a/Template.php +++ b/Template.php @@ -6695,6 +6695,17 @@ public function tidy_parameter(string $param): void return; + case 'quote': + $quote = $this->get('quote'); + if ($quote === '') { + return; + } + $quote_out = safe_preg_replace('~[\n\r]+~', ' ', $quote); + if ($quote_out !== $quote && $quote_out !== '') { + $this->set('quote', $quote_out); + } + return; + case 'quotes': switch (strtolower(trim($this->get($param)))) { case 'yes':