diff --git a/src/Compressor/HtmlCompressor.php b/src/Compressor/HtmlCompressor.php
index bf1ccbe..7aa8f92 100644
--- a/src/Compressor/HtmlCompressor.php
+++ b/src/Compressor/HtmlCompressor.php
@@ -14,6 +14,7 @@ final class HtmlCompressor implements CompressorInterface
public function __construct(Patterns $patterns)
{
$this->htmlMin = new HtmlMin();
+ $this->htmlMin->doRemoveSpacesBetweenTags(true);
$this->htmlMin->attachObserverToTheDomLoop(new HtmlMinObserver($patterns));
}
diff --git a/tests/Compressor/HtmlCompressorTest.php b/tests/Compressor/HtmlCompressorTest.php
index aec80cf..ecb87d6 100644
--- a/tests/Compressor/HtmlCompressorTest.php
+++ b/tests/Compressor/HtmlCompressorTest.php
@@ -71,7 +71,7 @@ public function providerMultipleSpaces(): iterable
yield [
"\n
\n \n
\n foo\n
lall
\n \n ",
- '
foo
lall
',
+ '
foo
lall
',
];
}
diff --git a/tests/EdgeCases/WyriHaximus-MinifyHtml-5/out.html b/tests/EdgeCases/WyriHaximus-MinifyHtml-5/out.html
index e2358f8..064e99c 100644
--- a/tests/EdgeCases/WyriHaximus-MinifyHtml-5/out.html
+++ b/tests/EdgeCases/WyriHaximus-MinifyHtml-5/out.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/EdgeCases/asciinema/out.html b/tests/EdgeCases/asciinema/out.html
index 1890bb6..35fe758 100644
--- a/tests/EdgeCases/asciinema/out.html
+++ b/tests/EdgeCases/asciinema/out.html
@@ -13,4 +13,4 @@
$socket->listen(1337);
$loop->run();
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/EdgeCases/blog.wyrihaximus.net/out.html b/tests/EdgeCases/blog.wyrihaximus.net/out.html
index 8314bd9..5759de1 100644
--- a/tests/EdgeCases/blog.wyrihaximus.net/out.html
+++ b/tests/EdgeCases/blog.wyrihaximus.net/out.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/EdgeCases/conditionals/in.html b/tests/EdgeCases/conditionals/in.html
new file mode 100644
index 0000000..949b191
--- /dev/null
+++ b/tests/EdgeCases/conditionals/in.html
@@ -0,0 +1,7 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/EdgeCases/conditionals/out.html b/tests/EdgeCases/conditionals/out.html
new file mode 100644
index 0000000..329e986
--- /dev/null
+++ b/tests/EdgeCases/conditionals/out.html
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/tests/EdgeCases/ld-json-37/out.html b/tests/EdgeCases/ld-json-37/out.html
index 19c1453..bacd917 100644
--- a/tests/EdgeCases/ld-json-37/out.html
+++ b/tests/EdgeCases/ld-json-37/out.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/EdgeCases/ld-json/out.html b/tests/EdgeCases/ld-json/out.html
index 41ca625..1e83711 100644
--- a/tests/EdgeCases/ld-json/out.html
+++ b/tests/EdgeCases/ld-json/out.html
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/tests/Factory/fastest/out.html b/tests/Factory/fastest/out.html
index 2208d56..80412d9 100644
--- a/tests/Factory/fastest/out.html
+++ b/tests/Factory/fastest/out.html
@@ -1,3 +1,3 @@
\ No newline at end of file
diff --git a/tests/Factory/normal/out.html b/tests/Factory/normal/out.html
index 790f11d..1df86a1 100644
--- a/tests/Factory/normal/out.html
+++ b/tests/Factory/normal/out.html
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+ Goede avond
\ No newline at end of file
diff --git a/tests/Factory/smallest/out.html b/tests/Factory/smallest/out.html
index c876e1a..35da1f9 100644
--- a/tests/Factory/smallest/out.html
+++ b/tests/Factory/smallest/out.html
@@ -1,3 +1,3 @@
-
\ No newline at end of file
+ Goede avond
\ No newline at end of file