Re: [RFC/PATCH] gitweb: Add committags support
- From
Junio C Hamano <junkio@cox.net>
- Date
- Sep 23, 2006, 20:50 UTC
- Message-ID
- <7v4puys3ye.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <ef44r4$km0$1@sea.gmane.org>
Jakub Narebski <jnareb@gmail.com> writes:
Show 5 quoted lines
> The idea of doing committag parsing, and preserving replacements > from matching committag and being subject to HTML escaping by using > reference to string has it's merits. > > I'd have to think about it.
Good. My obviously buggy illustration would be easier to read with this patch ;-).
--- gomi 2006-09-23 13:47:52.000000000 -0700 +++ gomi 2006-09-23 13:48:23.000000000 -0700
@@ -2,7 +2,7 @@ my @input = (@_); my @output; for (@input) { - if (!ref $_) { + if (ref $_) { push @output, $_; next; } @@ -19,6 +19,9 @@ } $_ = $post; } + if ($_ ne '') { + push @output, $_; + } } return @output; }