mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 02:31:40 +09:00
Fix incorrect handling of newline in TemplateHandler
This commit is contained in:
parent
5b5010a401
commit
7a62550c30
1 changed files with 0 additions and 2 deletions
|
|
@ -330,11 +330,9 @@ class TemplateHandler
|
||||||
$buff = preg_replace([
|
$buff = preg_replace([
|
||||||
'/>\<\?php } \?\>\n[\t\x20]*?(?=\n<!--)/',
|
'/>\<\?php } \?\>\n[\t\x20]*?(?=\n<!--)/',
|
||||||
'/\n[\t\x20]*?(?=\n<!--)/',
|
'/\n[\t\x20]*?(?=\n<!--)/',
|
||||||
'/\n[\t\x20]*?(?=\n)/',
|
|
||||||
'/\n[\t\x20]+?\<\?php/',
|
'/\n[\t\x20]+?\<\?php/',
|
||||||
], [
|
], [
|
||||||
"><?php } ?>\n<?php echo \"\\n\"; ?>",
|
"><?php } ?>\n<?php echo \"\\n\"; ?>",
|
||||||
"\n",
|
|
||||||
"\n<?php ?>",
|
"\n<?php ?>",
|
||||||
"\n<?php",
|
"\n<?php",
|
||||||
], $buff);
|
], $buff);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue