Skip to content

Commit

Permalink
Ran csharpier
Browse files Browse the repository at this point in the history
  • Loading branch information
MalcolmJohnston committed Jan 13, 2025
1 parent 5394702 commit 05fb9af
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Clippit/Word/Assembler/XElementExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ namespace Clippit.Word.Assembler
{
internal static class XElementExtensions
{
internal static void MergeRunProperties(this XElement element, XElement paraRunProperties, XElement runRunProperties)
internal static void MergeRunProperties(
this XElement element,
XElement paraRunProperties,
XElement runRunProperties
)
{
// merge run properties of paragraph properties
if (element.Name == W.p && paraRunProperties != null)
Expand Down
6 changes: 5 additions & 1 deletion Clippit/Word/DocumentAssembler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,11 @@ OpenXmlPart part
XElement currentPara = embeddedPara ?? parentPara;
XElement currentParaProps = currentPara.Descendants(W.pPr).FirstOrDefault();
XElement currentParaRunProps = currentParaProps.Elements(W.rPr).FirstOrDefault();
XElement currentRunRunProps = element.Descendants(W.r).FirstOrDefault()?.Elements(W.rPr).FirstOrDefault();
XElement currentRunRunProps = element
.Descendants(W.r)
.FirstOrDefault()
?.Elements(W.rPr)
.FirstOrDefault();

// get the list of created elements, could be all paragraphs or a run followed by paragraphs
IList<object> content;
Expand Down

0 comments on commit 05fb9af

Please sign in to comment.