diff --git a/QuestPDF/Elements/Stack.cs b/QuestPDF/Elements/Stack.cs
index 3a8510f..5f17473 100644
--- a/QuestPDF/Elements/Stack.cs
+++ b/QuestPDF/Elements/Stack.cs
@@ -97,6 +97,7 @@ namespace QuestPDF.Elements
return elements;
return elements
+ .Where(x => !(x is Empty))
.Select(x => new Padding
{
Bottom = spacing,
diff --git a/QuestPDF/QuestPDF.csproj b/QuestPDF/QuestPDF.csproj
index b33b74a..a986983 100644
--- a/QuestPDF/QuestPDF.csproj
+++ b/QuestPDF/QuestPDF.csproj
@@ -4,7 +4,7 @@
MarcinZiabek
CodeFlint
QuestPDF
- 2021.5.1
+ 2021.5.2
QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API.
New elements: Box, Grid, Canvas, EnsureSpance and Layers. Redesigned the Debug element. Added material design colors. Added list of basic fonts. Added spacing property to the Row element. Fluent API improvements and increased stability.
8