diff --git a/Src/xWorks/LcmWordGenerator.cs b/Src/xWorks/LcmWordGenerator.cs index b3294152e0..395f033005 100644 --- a/Src/xWorks/LcmWordGenerator.cs +++ b/Src/xWorks/LcmWordGenerator.cs @@ -468,12 +468,12 @@ public void AppendToParagraph(IFragment fragToCopy, OpenXmlElement run, bool for if (forceNewParagraph) { // When forcing a new paragraph use a 'continuation' style for the new paragraph. - // The continuation style is based on the style used in the last paragraph. + // The continuation style is based on the style used in the first paragraph. string style = null; - WP.Paragraph lastParagraph = DocBody.OfType().LastOrDefault(); - if (lastParagraph != null) + WP.Paragraph firstParagraph = DocBody.OfType().FirstOrDefault(); + if (firstParagraph != null) { - WP.ParagraphProperties paraProps = lastParagraph.OfType().FirstOrDefault(); + WP.ParagraphProperties paraProps = firstParagraph.OfType().FirstOrDefault(); if (paraProps != null) { ParagraphStyleId styleId = paraProps.OfType().FirstOrDefault(); @@ -1206,14 +1206,16 @@ public void AddEntryData(IFragmentWriter writer, List