Skip to content

Commit

Permalink
Merge pull request #910 from PBrunot/master
Browse files Browse the repository at this point in the history
fix #909
  • Loading branch information
tonyqus authored Aug 15, 2022
2 parents ca2139d + fe391a0 commit 23a984b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OpenXmlFormats/Wordprocessing/Paragraph.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7456,8 +7456,16 @@ public static CT_Br Parse(XmlNode node, XmlNamespaceManager namespaceManager)
CT_Br ctObj = new CT_Br();
if (node.Attributes["w:type"] != null)
ctObj.type = (ST_BrType)Enum.Parse(typeof(ST_BrType), node.Attributes["w:type"].Value);
else
ctObj.type = ST_BrType.textWrapping; // Default value as http://officeopenxml.com/WPtextSpecialContent-break.php

if (node.Attributes["w:clear"] != null)
ctObj.clear = (ST_BrClear)Enum.Parse(typeof(ST_BrClear), node.Attributes["w:clear"].Value);
else
{
if (ctObj.type == ST_BrType.textWrapping)
ctObj.clear = ST_BrClear.none;
}
return ctObj;
}

Expand Down

0 comments on commit 23a984b

Please sign in to comment.