1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-13 01:00:23 +02:00

Restore some linefeed rendering behavior from before def7d513.

The new rendering behavior is correct in normal cases, but for the pre-rendered HTML blocks in the command and configuration references it causes a lot of churn. This would be OK if the new HTML was diff-able, but it is not.

Go back to the old behavior of using br tags for this case to reduce churn until a more permanent solution is found.
This commit is contained in:
David Steele
2021-10-29 10:35:56 -04:00
parent c32e000ab9
commit 1336657326
3 changed files with 20 additions and 3 deletions

View File

@ -625,7 +625,7 @@ sub backrestConfigProcess
# {strContent => "${strFile}:"});
# Convert linefeeds to br tags
$strConfig =~ s/\n/<\/br>/g;
$strConfig =~ s/\n/<br\/>\n/g;
$oConfigBodyElement->
addNew(HTML_DIV, "config-body-output",
@ -685,7 +685,7 @@ sub postgresConfigProcess
# {strContent => "append to ${strFile}:"});
# Convert linefeeds to br tags
$strConfig =~ s/\n/<\/br>/g;
$strConfig =~ s/\n/<br\/>\n/g;
$oConfigBodyElement->
addNew(HTML_DIV, "config-body-output",