You've already forked pgbackrest
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:
@ -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",
|
||||
|
Reference in New Issue
Block a user