Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable borders in Word Export #42

Merged
merged 2 commits into from
May 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions Src/xWorks/WordStylesGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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
Expand Down
Loading