From 1d819c137f77ea07179f443e49d82603b461d0c0 Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Mon, 12 Oct 2009 10:50:27 +0000 Subject: [PATCH] Added warning when transcluding an inexistent page. --- AssemblyVersion.cs | 4 ++-- Core/Formatter.cs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 52d73c8..eb9d4fd 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -16,5 +16,5 @@ using System.Reflection; // // You can specify all the values or you can default the Revision and Build Numbers // by using the '*' as shown below: -[assembly: AssemblyVersion("3.0.0.344")] -[assembly: AssemblyFileVersion("3.0.0.344")] +[assembly: AssemblyVersion("3.0.0.345")] +[assembly: AssemblyFileVersion("3.0.0.345")] diff --git a/Core/Formatter.cs b/Core/Formatter.cs index 1fb2bc3..c1aed0c 100644 --- a/Core/Formatter.cs +++ b/Core/Formatter.cs @@ -401,6 +401,7 @@ namespace ScrewTurn.Wiki { dummy.Append(""); sb.Insert(match.Index, dummy.ToString()); } + else sb.Insert(match.Index, @"FORMATTER ERROR (Transcluded inexistent page or this same page)"); } ComputeNoWiki(sb.ToString(), ref noWikiBegin, ref noWikiEnd); match = TransclusionRegex.Match(sb.ToString(), end);