po plugin: htmlize translated content as if it was the same type as the master page

Signed-off-by: intrigeri <intrigeri@boum.org>
master
intrigeri 2008-10-05 19:56:53 +02:00
parent 1b5f610a97
commit 575d4021e3
1 changed files with 6 additions and 2 deletions

View File

@ -92,9 +92,13 @@ sub filter (@) { #{{{
sub htmlize (@) { #{{{ sub htmlize (@) { #{{{
my %params=@_; my %params=@_;
my $page = $params{page};
my $content = $params{content}; my $content = $params{content};
# FIXME: run master page's type htmlize hook my ($masterpage, $lang) = ($page =~ /(.*)[.]([a-z]{2})$/);
return $content; my $masterfile = srcfile($pagesources{$masterpage});
# force content to be htmlize'd as if it was the same type as the master page
return IkiWiki::htmlize($page, $page, pagetype($masterfile), $content);
} #}}} } #}}}
package IkiWiki::PageSpec; package IkiWiki::PageSpec;