diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-05-26 17:04:49 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-05-26 17:04:49 -0400 |
commit | 96087cbd88fd056ae34675abfb0e3e411f019763 (patch) | |
tree | 2a14567e6da842a7e2f586de7f6da112fdac1ad5 | |
parent | fd7db49f941eab604fcabdf78b3c36c743005d34 (diff) | |
download | ikiwiki-96087cbd88fd056ae34675abfb0e3e411f019763.tar ikiwiki-96087cbd88fd056ae34675abfb0e3e411f019763.tar.gz |
call initLanguage after initTheme
See #530654
-rw-r--r-- | IkiWiki/Plugin/highlight.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/highlight.pm b/IkiWiki/Plugin/highlight.pm index 4c02f6c23..20f79ef57 100644 --- a/IkiWiki/Plugin/highlight.pm +++ b/IkiWiki/Plugin/highlight.pm @@ -128,8 +128,8 @@ sub highlight ($$) { $gen = highlightc::CodeGenerator_getInstance($highlightc::XHTML); $gen->setFragmentCode(1); # generate html fragment $gen->setHTMLEnclosePreTag(1); # include stylish <pre> - $gen->initLanguage($langfile); $gen->initTheme("/dev/null"); # theme is not needed because CSS is not emitted + $gen->initLanguage($langfile); # must come after initTheme $gen->setEncoding("utf-8"); $highlighters{$langfile}=$gen; } |