summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-26 17:53:03 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-26 17:53:03 -0400
commite82993000841530586219d8f4fbe3cdc1835a43a (patch)
treeec19ec53a63e1cd83cda97f9bb47264c385f2bfa
parent8a45362d55a4b563764f997d7419623a17da86ba (diff)
put preprocess loop errors inside an error span
-rw-r--r--IkiWiki.pm11
1 files changed, 4 insertions, 7 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 01e7cc1e4..3f8a4bca3 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -764,13 +764,10 @@ sub preprocess ($$$;$$) { #{{{
if ($preprocessing{$page}++ > 3) {
# Avoid loops of preprocessed pages preprocessing
# other pages that preprocess them, etc.
- #translators: The first parameter is a
- #translators: preprocessor directive name,
- #translators: the second a page name, the
- #translators: third a number.
- return "[[".sprintf(gettext("%s preprocessing loop detected on %s at depth %i"),
- $command, $page, $preprocessing{$page}).
- "]]";
+ return "[[!$command <span class=\"error\">".
+ sprintf(gettext("preprocessing loop detected on %s at depth %i"),
+ $page, $preprocessing{$page}).
+ "</span>]]";
}
my $ret;
if (! $scan) {