This commit is contained in:
2011-04-14 14:03:08 +00:00
parent c1d863e1ac
commit 48b677486e
2 changed files with 30 additions and 7 deletions

View File

@@ -636,8 +636,12 @@ namespace Volian.Print.Library
case "{OF}": // Total Page Count for this section
return CurrentPageOf.ToString();
case "{REVDATE}": // Revision Date
if (RevDate == null || RevDate == "") return DateTime.Now.ToShortDateString();
return RevDate;
case "{REV}": // Revision Number
// 16-bit had very specific code to check for first character
// == to a ' ' (space) and if so, start Rev from second character.
if (Rev !=null && Rev != "" && Rev[0] == ' ') return Rev.Substring(1, Rev.Length - 1);
return Rev;
}
if (!_MissingTokens.Contains(match.Value))