Signed-off-by: Stephen Cuka <stephen(a)firemypi.org>
---
This patch addresses an issue with the IPFire WebGUI adding a space
after every 80 characters in the display of long log entries on the
"Logs/System Logs" page. (Bug 13735)
The patch removes the "very basic breaking of lines..." code and replaces it
with a direct copy of the log entry $data to the display output variable $d.
html/cgi-bin/logs.cgi/log.dat | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/html/cgi-bin/logs.cgi/log.dat b/html/cgi-bin/logs.cgi/log.dat
index 01c382a0d..ce7de0178 100644
--- a/html/cgi-bin/logs.cgi/log.dat
+++ b/html/cgi-bin/logs.cgi/log.dat
@@ -412,11 +412,12 @@ foreach $_ (@log)
$sec = 'kernel';
$data = $2.': '.$data;
}
- my $d = substr ($data,0,80);
- while (length($data)>80){ #very basic breaking of lines...
- $data = substr ($data,80); #permit correct display in table cell
- $d .= ' ' . substr ($data,0,80);
- }
+ #my $d = substr ($data,0,80);
+ #while (length($data)>80){ #very basic breaking of lines...
+ # $data = substr ($data,80); #permit correct display in table cell
+ # $d .= ' ' . substr ($data,0,80);
+ #}
+ my $d = $data; #don't break lines for display
my $col="";
if ($lines % 2) {
--
2.34.1