From 33b03c0a9afbac22b8f2219ed2909b1407a43b8a Mon Sep 17 00:00:00 2001 From: John Date: Tue, 9 Aug 2011 20:08:09 +0000 Subject: [PATCH] handle bullets for multiple cautions and notes --- PROMS/Volian.Print.Library/vlnTab.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/PROMS/Volian.Print.Library/vlnTab.cs b/PROMS/Volian.Print.Library/vlnTab.cs index 53e7f8d9..22923938 100644 --- a/PROMS/Volian.Print.Library/vlnTab.cs +++ b/PROMS/Volian.Print.Library/vlnTab.cs @@ -80,6 +80,20 @@ namespace Volian.Print.Library Width = MyFont.CharsToTwips * (cleanTab != null ? cleanTab.Length : origTab.Length); } Rtf = GetRtf(origTab, vFont); + Rtf = Rtf.Replace("\u25CF", @"\f1\u9679?\f0"); // bullet 25CF + if (!myparent.MyItemInfo.FormatStepData.AlwaysTab && myparent.MyItemInfo.MyPrevious != null) + { + Rtf = Rtf.Replace("Caution:", " "); + Rtf = Rtf.Replace("Note:", " "); + Rtf = Rtf.Replace("CAUTION:", " "); + Rtf = Rtf.Replace("NOTE:", " "); + Rtf = Rtf.Replace("Caution", " "); + Rtf = Rtf.Replace("Note", " "); + Rtf = Rtf.Replace("CAUTION", " "); + Rtf = Rtf.Replace("NOTE", " "); + } + + // do positioning based on whether format has locations for section 'header'. If it's not centered, treat // it's location more like a 'tab'. if (doSectTab)