X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/blobdiff_plain/a71b9a1cf1322cd1423971483969d37efa5ebcf8..391c5c2cb58719ca6f7a128e23ec387276c53c62:/IkiWiki.pm 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 ". + sprintf(gettext("preprocessing loop detected on %s at depth %i"), + $page, $preprocessing{$page}). + "]]"; } my $ret; if (! $scan) {