From 1b03a06c8c0dbf59469ff30d09a0c9c3051e0b00 Mon Sep 17 00:00:00 2001 From: Josh Triplett Date: Sun, 27 Jan 2008 16:13:54 -0800 Subject: =?UTF-8?q?Add=20new=20preprocessor=20directive=20syntax=C2=B8=20u?= =?UTF-8?q?sing=20a=20'!'=20prefix.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a prefix_directives option to the setup file to turn this syntax on; currently defaults to false, for backward compatibility. Support optional '!' prefix even with prefix_directives off, and use that in the underlay to support either setting of prefix_directives. Add NEWS entry with migration information. --- t/linkify.t | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 't/linkify.t') diff --git a/t/linkify.t b/t/linkify.t index 59af7bd4d..400e2e893 100755 --- a/t/linkify.t +++ b/t/linkify.t @@ -24,9 +24,17 @@ sub linkify ($$$$) { } %config=IkiWiki::defaultconfig(); $config{cgiurl}="http://somehost/ikiwiki.cgi"; + $config{srcdir}=$config{destdir}="/dev/null"; # placate checkconfig # currently coded for non usedirs mode (TODO: check both) $config{usedirs}=0; + # currently coded for prefix_directives=0 (TODO: check both) + # Not setting $config{prefix_directives}=0 explicitly; instead, let the + # tests break if the default changes, as a reminder to update the + # tests. + + IkiWiki::checkconfig(); + return IkiWiki::linkify($lpage, $page, $content); } -- cgit v1.2.3