From 0db0cf77f9769c72401587c1165ccfe2d9ee827a Mon Sep 17 00:00:00 2001 From: Ilia Ross Date: Wed, 13 May 2026 23:12:42 +0200 Subject: [PATCH] Fix to disregard silly new line option --- ui-lib.pl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui-lib.pl b/ui-lib.pl index f557848a7..52cceb5b7 100755 --- a/ui-lib.pl +++ b/ui-lib.pl @@ -3471,13 +3471,13 @@ return &theme_ui_brh() if (defined(&theme_ui_brh)); return "
\n"; } -# ui_tag_start(tag, [attrs], [no-new-line]) +# ui_tag_start(tag, [attrs]) # Function to create an opening HTML tag with optional attributes. # Attributes are passed as a hash reference and its values are quote escaped. sub ui_tag_start { return theme_ui_tag_start(@_) if (defined(&theme_ui_tag_start)); -my ($tag, $attrs, $nnl) = @_; +my ($tag, $attrs) = @_; # Ensure every tag gets a proper marker class $attrs ||= {}; @@ -3505,7 +3505,7 @@ if ($attrs && ref($attrs) eq 'HASH') { } # Close the opening tag -$rv .= $nnl ? ">" : ">\n"; +$rv .= ">"; # Handle special case for tag $rv = "\n$rv" if ($tag eq 'html'); @@ -3539,7 +3539,7 @@ sub ui_tag { return theme_ui_tag(@_) if (defined(&theme_ui_tag)); my ($tag, $content, $attrs) = @_; -my $rv = ui_tag_start($tag, $attrs, !defined($content)); +my $rv = ui_tag_start($tag, $attrs); $rv .= ui_tag_content($content) if (defined($content)); my %void_tags = map { $_ => 1 } qw(