diff --git a/exist-core/src/test/java/org/exist/util/serializer/HTML5WriterTest.java b/exist-core/src/test/java/org/exist/util/serializer/HTML5WriterTest.java
index e94db9f2820..fc061031b91 100644
--- a/exist-core/src/test/java/org/exist/util/serializer/HTML5WriterTest.java
+++ b/exist-core/src/test/java/org/exist/util/serializer/HTML5WriterTest.java
@@ -42,7 +42,7 @@ public void setUp() throws Exception {
@Test
public void testAttributeWithBooleanValue() throws Exception {
- final String expected = "\n\n";
+ final String expected = "\n";
final QName elQName = new QName("input");
writer.startElement(elQName);
writer.attribute("checked", "checked");
@@ -54,7 +54,7 @@ public void testAttributeWithBooleanValue() throws Exception {
@Test
public void testAttributeWithNonBooleanValue() throws Exception {
- final String expected = "\n\n";
+ final String expected = "\n";
final QName elQName = new QName("input");
writer.startElement(elQName);
writer.attribute("name", "name");
@@ -66,7 +66,7 @@ public void testAttributeWithNonBooleanValue() throws Exception {
@Test
public void testAttributeQNameWithBooleanValue() throws Exception {
- final String expected = "\n\n";
+ final String expected = "\n";
final QName elQName = new QName("input");
final QName attrQName = new QName("checked");
writer.startElement(elQName);
@@ -79,7 +79,7 @@ public void testAttributeQNameWithBooleanValue() throws Exception {
@Test
public void testAttributeQNameWithNonBooleanValue() throws Exception {
- final String expected = "\n\n";
+ final String expected = "\n";
final QName elQName = new QName("input");
final QName attrQName = new QName("name");
writer.startElement(elQName);