]> Lady’s Gitweb - Gitweb/blobdiff - gitweb.perl
gitweb: fix unmatched div in commitdiff
[Gitweb] / gitweb.perl
index ab5fefa2008ba407f729e08b9bfde1da38d8c37bfb8a47b7e18cab21d538ef52..5f1088fdb9c5c5424a2f7a7a7d0cb80aa0097a7e6025e4cc9118ed90fee8a4ed 100755 (executable)
@@ -815,12 +815,11 @@ sub file_type_long {
 ## functions returning short HTML fragments, or transforming HTML fragments
 ## which don't beling to other sections
 
-# format line of commit message or tag comment
+# format line of commit message.
 sub format_log_line_html {
        my $line = shift;
 
-       $line = esc_html($line);
-       $line =~ s/ / /g;
+       $line = esc_html($line, -nbsp=>1);
        if ($line =~ m/([0-9a-fA-F]{40})/) {
                my $hash_text = $1;
                if (git_get_type($hash_text) eq "commit") {
@@ -2340,6 +2339,8 @@ sub git_patchset_body {
 
                print format_diff_line($patch_line);
        }
+       print "</div>\n" if $in_header; # extended header
+
        print "</div>\n" if $patch_found; # class="patch"
 
        print "</div>\n"; # class="patchset"
This page took 0.229909 seconds and 4 git commands to generate.