Skip to content

Commit

Permalink
Update packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianStehle committed Mar 1, 2024
1 parent d2e8edf commit 7924c29
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 16 deletions.
2 changes: 1 addition & 1 deletion Mjml.Net.Generator/Mjml.Net.Generator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<ItemGroup>
<PackageReference Include="Handlebars.Net" Version="2.1.4" PrivateAssets="all" GeneratePathProperty="true" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.143">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.145">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
15 changes: 6 additions & 9 deletions Mjml.Net/Internal/SubtreeReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,13 @@ public override bool Read()

if (hasRead)
{
if (!VoidTags.Contains(inner.Name))
if (TokenKind == HtmlTokenKind.Tag && !VoidTags.Contains(inner.Name) && !inner.SelfClosingElement)
{
if (TokenKind == HtmlTokenKind.Tag && !inner.SelfClosingElement)
{
depth++;
}
else if (TokenKind == HtmlTokenKind.EndTag)
{
depth--;
}
depth++;
}
else if (TokenKind == HtmlTokenKind.EndTag && !VoidTags.Contains(inner.Name))
{
depth--;
}
}
else
Expand Down
2 changes: 1 addition & 1 deletion Mjml.Net/Mjml.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<ItemGroup>
<PackageReference Include="HtmlPerformanceKit" Version="1.0.0" />
<PackageReference Include="Meziantou.Analyzer" Version="2.0.143">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.145">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
6 changes: 3 additions & 3 deletions Tests/Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="AngleSharp" Version="1.1.0" />
<PackageReference Include="AngleSharp.Diffing" Version="0.18.2-alpha-89" />
<PackageReference Include="AngleSharp" Version="1.1.1" />
<PackageReference Include="AngleSharp.Diffing" Version="0.18.2" />
<PackageReference Include="FakeItEasy" Version="8.1.0" />
<PackageReference Include="FluentAssertions" Version="7.0.0-alpha.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.9.0" />
Expand All @@ -67,7 +67,7 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.143">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.145">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
4 changes: 2 additions & 2 deletions Tools/Tools.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Meziantou.Analyzer" Version="2.0.143">
<PackageReference Include="Meziantou.Analyzer" Version="2.0.145">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="RefactoringEssentials" Version="5.6.0" PrivateAssets="all" />
<PackageReference Include="Squidex.Text" Version="6.3.7" />
<PackageReference Include="Squidex.Text" Version="6.4.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.507" PrivateAssets="all" />
</ItemGroup>

Expand Down

0 comments on commit 7924c29

Please sign in to comment.