handle bullets for multiple cautions and notes

This commit is contained in:
John Jenko 2011-08-09 20:08:09 +00:00
parent 4080c3c189
commit 33b03c0a9a

View File

@ -80,6 +80,20 @@ namespace Volian.Print.Library
Width = MyFont.CharsToTwips * (cleanTab != null ? cleanTab.Length : origTab.Length); Width = MyFont.CharsToTwips * (cleanTab != null ? cleanTab.Length : origTab.Length);
} }
Rtf = GetRtf(origTab, vFont); 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 // do positioning based on whether format has locations for section 'header'. If it's not centered, treat
// it's location more like a 'tab'. // it's location more like a 'tab'.
if (doSectTab) if (doSectTab)