Skip to content

Commit

Permalink
LT-21761 & LT-21674: Handle Before, Between, After and more
Browse files Browse the repository at this point in the history
Handle Before, Between, After, and DisplayInSeparateParagraphs.
Remaining tasks:
- Tables still need indenting.
- The first line after a table is shifted to the left. A new
‘continuation’ style is needed when we start a new paragraph.
- Before, Between, and After might need to use a different style.

Change-Id: I5a19055412025faf3b7c1f1cc67f4285629758b0
  • Loading branch information
mark-sil committed Apr 25, 2024
1 parent dbff10e commit 4117616
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions Src/xWorks/LcmWordGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -659,13 +659,9 @@ private IFragment WriteProcessedElementContent(IFragment elementContent, Configu
// Use the style name and type of the config node or its parent to link a style to the elementContent fragment where the processed contents are written.
DocFragment.LinkStyleOrInheritParentStyle(elementContent, config);

bool displayEachInAParagraph = false;
if (config != null &&
config.DictionaryNodeOptions is IParaOption &&
((IParaOption)(config.DictionaryNodeOptions)).DisplayEachInAParagraph)
{
displayEachInAParagraph = true;
}
bool displayEachInAParagraph = config != null &&
config.DictionaryNodeOptions is IParaOption &&
((IParaOption)(config.DictionaryNodeOptions)).DisplayEachInAParagraph;

// Add Before text, if it is not going to be displayed in it's own paragraph.
if (!displayEachInAParagraph && !string.IsNullOrEmpty(config.Before))
Expand Down

0 comments on commit 4117616

Please sign in to comment.