]> sipb.mit.edu Git - ikiwiki.git/commitdiff
Updated patch
authorhttp://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web>
Mon, 27 Oct 2008 22:38:20 +0000 (18:38 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 27 Oct 2008 22:38:20 +0000 (18:38 -0400)
doc/todo/automatic_use_of_syntax_plugin_on_source_code_files/discussion.mdwn

index 2fad9f19aedbc4112bc67bd259ba816811e65a56..467ec350edb971e6034c0edf272f4910d7926452 100644 (file)
@@ -1,6 +1,6 @@
 Here is another [[patch]] for this.  It is more up to date than either of the patches linked on the previous page.  It is most similar to [[plugins/contrib/sourcehighlight]].
 
-Note that if this is being used with `c` or `c++` then you'll probably want to wait until [[bugs/multiple_pages_with_same_name]] is fixed.
+Updated to use fix noted in [[bugs/multiple_pages_with_same_name]].
 
 -- [[Will]]
 
@@ -92,7 +92,7 @@ Note that if this is being used with `c` or `c++` then you'll probably want to w
        
        foreach my $lang (split(/[, ]+/, $config{sourcecode_lang})) {
                if ($langs{$lang}) {
-                       hook(type => "htmlize", id => $lang, call => \&htmlize);
+                       hook(type => "htmlize", id => $lang, call => \&htmlize, keepextension => 1);
                } else {
                        error("Your installation of source-highlight cannot handle sourcecode language $lang!");
                }