This commit is contained in:
parent
dbf6f8feee
commit
7427c75caa
@ -137,6 +137,8 @@ namespace Volian.Controls.Library
|
|||||||
bool tableHasBorder = tableShouldBeOutlined ? itemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[typ].Type.IndexOf(@"Borderless") < 0 : false;
|
bool tableHasBorder = tableShouldBeOutlined ? itemInfo.ActiveFormat.PlantFormat.FormatData.StepDataList[typ].Type.IndexOf(@"Borderless") < 0 : false;
|
||||||
bool ROsShouldBeAdjusted = wordsShouldBeReplaced; // same logical value
|
bool ROsShouldBeAdjusted = wordsShouldBeReplaced; // same logical value
|
||||||
if (epMode == E_EditPrintMode.Print && _MyItemInfo.IsStep)
|
if (epMode == E_EditPrintMode.Print && _MyItemInfo.IsStep)
|
||||||
|
{
|
||||||
|
if (_MyItemInfo.FormatStepData.UseSmartTemplate)
|
||||||
{
|
{
|
||||||
// Add 2 spaces before and 1 after if there is prefix so that wrapping in RTB accounts for vertical
|
// Add 2 spaces before and 1 after if there is prefix so that wrapping in RTB accounts for vertical
|
||||||
// lines (the 2 spaces after the first "\par " command and 1 space before 2nd "\par"). Tried other
|
// lines (the 2 spaces after the first "\par " command and 1 space before 2nd "\par"). Tried other
|
||||||
@ -148,6 +150,14 @@ namespace Volian.Controls.Library
|
|||||||
text = text + (!_MyItemInfo.FormatStepData.Font.FontIsProportional() ? ReplaceLinesWithUnicode(_MyItemInfo.FormatStepData.Suffix) :
|
text = text + (!_MyItemInfo.FormatStepData.Font.FontIsProportional() ? ReplaceLinesWithUnicode(_MyItemInfo.FormatStepData.Suffix) :
|
||||||
@"\par\par\par ");
|
@"\par\par\par ");
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (_MyItemInfo.FormatStepData.Prefix != null && _MyItemInfo.FormatStepData.Prefix != "")
|
||||||
|
text = _MyItemInfo.FormatStepData.Prefix + text;
|
||||||
|
if (_MyItemInfo.FormatStepData.Suffix != null && _MyItemInfo.FormatStepData.Suffix != "")
|
||||||
|
text = text + _MyItemInfo.FormatStepData.Suffix;
|
||||||
|
}
|
||||||
|
}
|
||||||
text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted);
|
text = CreateRtf(colorLinks, text, tableShouldBeOutlined, wordsShouldBeReplaced, numbersShouldBeFormated, tableHasBorder, ROsShouldBeAdjusted);
|
||||||
StartText = text;
|
StartText = text;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user