]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Plugin/table.pm
web commit by http://natalian.org/
[ikiwiki.git] / IkiWiki / Plugin / table.pm
index 2ed60ab4604b3193b15914c6732568012c3a328d..c7b6640525d6b88f4d6b58ac70164d222bbf8038 100644 (file)
@@ -3,8 +3,7 @@ package IkiWiki::Plugin::table;
 
 use warnings;
 use strict;
-
-use IkiWiki;
+use IkiWiki 2.00;
 
 sub import { #{{{
        hook(type => "preprocess", id => "table", call => \&preprocess);
@@ -23,6 +22,10 @@ sub preprocess (@) { #{{{
                }
                $params{data} = readfile(srcfile($params{file}));
        }
+       else {
+               $params{data} = IkiWiki::linkify($params{page},
+                       $params{destpage}, $params{data});
+       }
 
        if (lc $params{format} eq 'auto') {
                # first try the more simple format
@@ -93,6 +96,7 @@ sub split_csv ($$) { #{{{
        my $csv = Text::CSV->new({ 
                sep_char        => defined $delimiter ? $delimiter : ",",
                binary          => 1,
+               allow_loose_quotes => 1,
        }) || error("could not create a Text::CSV object");
        
        my $l=0;