From 652ff22820aa5cc3d5f5619aee4478173e453aee Mon Sep 17 00:00:00 2001 From: Ariel Rorabaugh Date: Fri, 3 May 2024 17:48:58 -0400 Subject: [PATCH] Disable borders in Word Export - Comment out handling of borders in Word Export Borders do not currently display in FLEx. But once a border is added to a style in FLEx, deselecting the border does not actually remove the border object from the FLEx style. This means if a border has ever been added in FLEx, it will still exist in the configuration node and be added in the word export. Until this is fixed, we should disable borders in the word export. Change-Id: I19063eaaa9bb85f110ddb4c177958a7887e3af8c --- Src/xWorks/WordStylesGenerator.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Src/xWorks/WordStylesGenerator.cs b/Src/xWorks/WordStylesGenerator.cs index ae8d2d3c02..3e255d867b 100644 --- a/Src/xWorks/WordStylesGenerator.cs +++ b/Src/xWorks/WordStylesGenerator.cs @@ -145,7 +145,13 @@ internal static Style GenerateWordStyleFromLcmStyleSheet( // alignment is always a paragraph property parProps.Append(alignmentStyle); } - if (exportStyleInfo.HasBorder) + + // TODO: + // The code below works to handle borders for the word export. + // However, borders do not currently display in FLEx, and once a border has been added in FLEx, + // deselecting the border does not actually remove it from the styles object in FLEx. + // Until this is fixed, it is better not to display borders in the word export. + /*if (exportStyleInfo.HasBorder) { // create borders to add to the paragraph properties ParagraphBorders border = new ParagraphBorders(); @@ -173,7 +179,8 @@ internal static Style GenerateWordStyleFromLcmStyleSheet( border.Append(BottomBorder); parProps.Append(border); - } + }*/ + if (exportStyleInfo.HasFirstLineIndent) { // Handles both first-line and hanging indent, hanging-indent will result in a negative text-indent value