--- plugin\core\Source.pm Tue Dec 06 01:08:37 2005 +++ ext\plugin\core\Source.pm Tue Dec 06 10:39:25 2005 @@ -39,11 +39,24 @@ my $format = $wiki->get_edit_format(); $source = $wiki->convert_from_fswiki($source,$format); - if(&Util::handyphone()){ - print "Content-Type: text/plain;charset=Shift_JIS\n\n"; - &Jcode::convert(\$source,"sjis"); + # コード整形モジュール対応 + eval ("use plugin::code::Code;"); + if ( $@ eq "" ) { + my $code = plugin::code::Code->new($self); + $source = "".$code->block($wiki,$source,$format,'4','0').""; + if(&Util::handyphone()){ + print "Content-Type: text/html;charset=Shift_JIS\n\n"; + &Jcode::convert(\$source,"sjis"); + } else { + print "Content-Type: text/html;charset=EUC_JP\n\n"; + } } else { - print "Content-Type: text/plain;charset=EUC_JP\n\n"; + if(&Util::handyphone()){ + print "Content-Type: text/plain;charset=Shift_JIS\n\n"; + &Jcode::convert(\$source,"sjis"); + } else { + print "Content-Type: text/plain;charset=EUC_JP\n\n"; + } } print $source; exit();