From 2cbacee011e6b424a747704200ddbedca5101679 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Fri, 28 Aug 2026 18:19:21 +0200 Subject: [PATCH] lib/perl/NB/CGI.pm --- lib/perl/NB/CGI.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/perl/NB/CGI.pm b/lib/perl/NB/CGI.pm index a04882f4..f1682baf 100644 --- a/lib/perl/NB/CGI.pm +++ b/lib/perl/NB/CGI.pm @@ -419,7 +419,9 @@ sub self_or_default { sub css { my ($self,@p) = self_or_default(@_); - $self->_style({code => join($CGI::CRLF,@p)}); + $self->_style({ + code => join($CGI::CRLF,map{ s/^\s+//; s/\s+$//; $_; } @p) + }); } 1; -- 2.47.3