Skip to content

Commit

Permalink
Merge pull request #539 from Lempireqc/master
Browse files Browse the repository at this point in the history
Save
  • Loading branch information
JonathanMagnan authored Feb 14, 2024
2 parents 45e22dc + 01f2231 commit 511b4ec
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/HtmlAgilityPack.Shared/HtmlDocument.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,13 @@ public static bool DisableBehaviorTagP
/// </summary>
public bool OptionOutputAsXml;

/// <summary>
/// If used together with <see cref="OptionOutputAsXml"/> and enabled, Xml namespaces in element names are preserved. Default is false.
/// </summary>
public bool OptionPreserveXmlNamespaces;
// NEED TEXT!
public bool DisableImplicitEnd;

/// <summary>
/// If used together with <see cref="OptionOutputAsXml"/> and enabled, Xml namespaces in element names are preserved. Default is false.
/// </summary>
public bool OptionPreserveXmlNamespaces;

/// <summary>
/// Defines if attribute value output must be optimized (not bound with double quotes if it is possible). Default is false.
Expand Down Expand Up @@ -1836,8 +1839,8 @@ private void CloseParentImplicitExplicitNode()
// CHECK if parent must be implicitely closed
if (IsParentImplicitEnd())
{
if (OptionOutputAsXml)
{
if (OptionOutputAsXml || DisableImplicitEnd)
{
forceExplicitEnd = true;
}
else
Expand Down

0 comments on commit 511b4ec

Please sign in to comment.