Skip to content

Commit

Permalink
FIX: S:P:Tag: Schließe auch Singletons
Browse files Browse the repository at this point in the history
    Für html ist dies nicht wichtig und wird einfach ignoriert, aber der
    XML-Parser verlangt dies.

    In Firefox:
    XML Parsing Error: mismatched tag. Expected: </input>.
    Location: http://localhost/kivitendo/controller.pl?action=ShopPart/show_files&id=1120
    Line Number 29, Column 195: controller.pl:29:195
  • Loading branch information
z4m1n0 committed Nov 8, 2024
1 parent 10d07d1 commit 4a2714a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SL/Presenter/Tag.pm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ sub html_tag {
my ($tag, $content, %params) = @_;
my $attributes = stringify_attributes(%params);

return "<${tag}${attributes}>" if !defined($content) && $_singleton_tags{$tag};
return "<${tag}${attributes}/>" if !defined($content) && $_singleton_tags{$tag};
return "<${tag}${attributes}>${content}</${tag}>";
}

Expand Down

0 comments on commit 4a2714a

Please sign in to comment.