Skip to content

Commit

Permalink
Some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Feb 4, 2024
1 parent e50c025 commit d2a7052
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Mjml.Net/Components/IncludeComponent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ static void Add(IComponent component, IComponent parent)
{
if (component is HeadComponent)
{
// Add head children to the root head.
AddToHead(component, parent);
}
else if (component is RootComponent or BodyComponent or IncludeComponent)
{
// Just ignore these component and add the children to the parent.
foreach (var child in component.ChildNodes)
{
Add(child, parent);
Expand Down

0 comments on commit d2a7052

Please sign in to comment.