1 # Copyright 2002-2007 Interchange Development Group and others
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version. See the LICENSE file for details.
8 # $Id: quick_table.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
10 UserTag quick_table Order border
11 UserTag quick_table HasEndTag
12 UserTag quick_table Interpolate
13 UserTag quick_table Version $Revision: 1.4 $
14 UserTag quick_table Routine <<EOR
16 my ($border,$input) = @_;
17 $border = " BORDER=$border" if $border;
18 my $out = "<TABLE ALIGN=LEFT$border>";
19 my @rows = split /\n+/, $input;
22 $out .= '<TR><TD ALIGN=RIGHT VALIGN=TOP>';
23 ($left, $right) = split /\s*:\s*/, $_, 2;
24 $out .= '<B>' unless $left =~ /</;
26 $out .= '</B>' unless $left =~ /</;
27 $out .= '</TD><TD VALIGN=TOP>';