diff --git a/src/language-html/print-preprocess.js b/src/language-html/print-preprocess.js
index eafbe4c02..19cb12f5b 100644
--- a/src/language-html/print-preprocess.js
+++ b/src/language-html/print-preprocess.js
@@ -48,6 +48,10 @@ function removeIgnorableFirstLf(ast /* , options */) {
node.removeChild(text);
} else {
text.value = text.value.slice(1);
+ text.sourceSpan = new ParseSourceSpan(
+ text.sourceSpan.start.moveBy(1),
+ text.sourceSpan.end,
+ );
}
}
});