--- suikawiki/script/wiki.cgi 2002/02/04 15:27:22 1.7 +++ suikawiki/script/wiki.cgi 2002/04/23 10:14:12 1.15 @@ -20,7 +20,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -# $Id: wiki.cgi,v 1.7 2002/02/04 15:27:22 wakaba Exp $ +# $Id: wiki.cgi,v 1.15 2002/04/23 10:14:12 wakaba Exp $ ############################## my $version = "1.6.6"; ############################## @@ -75,7 +75,10 @@ ############################## # 全ページのスタイル my $style = <<'EOD'; -pre, dl, ul, ol, p, blockquote { line-height:120%; } +@import '/s/simpledoc'; +pre, dl, ul, ol, p, blockquote { line-height:120%; +margin-bottom: 1em} +a.wiki .mark {vertical-align: sub, color: GrayText} a { text-decoration: none; } a:link { color: #0000FF; background-color: #FFFFFF; } a:visited { color: #9900CC; background-color: #FFFFFF; } @@ -108,7 +111,7 @@ # 文字']'を1つ多くとるようにしている。 # my $WikiName = '([A-Z][a-z]+([A-Z][a-z]+)+)'; -my $BracketName = '\[\[([^>\s]+?\]?)\]\]'; +my $BracketName = '\[\[([^>\x09]+?\]?)\]\]'; # アイコン部分のタグ my $IconTag = ''; #<<"EOD"; @@ -566,7 +569,7 @@ $line =~ s! ( (?:<(?:mailto|http|https|ftp|urn):[\x21-\x7E]*)> - | (?:$WikiName) # LocalLinkLikeThis + #| (?:$WikiName) # LocalLinkLikeThis | (?:$BracketName) # [[日本語リンク]] ) ! @@ -578,7 +581,7 @@ # ページのタイトルからページの内容を得る sub get_page { my $page_name = shift; - return $database{$page_name}; + return $database{$page_name} || $database{'[['.$page_name.']]'}; } # ページの内容を与える @@ -615,7 +618,7 @@ sub print_header { my $title = shift; print <<"EOD"; -Content-type: text/html +Content-type: text/html; charset=${charset}