diff --git a/src/language-html/utils.js b/src/language-html/utils.js index 632f11efa..c818de2c5 100644 --- a/src/language-html/utils.js +++ b/src/language-html/utils.js @@ -53,10 +53,6 @@ function mapObject(object, fn) { } function shouldPreserveContent(node, options) { - if (!node.endSourceSpan) { - return false; - } - // unterminated node in ie conditional comment // e.g. if ( diff --git a/tests/html/tags/__snapshots__/jsfmt.spec.js.snap b/tests/html/tags/__snapshots__/jsfmt.spec.js.snap index e21e663f0..be33704fa 100644 --- a/tests/html/tags/__snapshots__/jsfmt.spec.js.snap +++ b/tests/html/tags/__snapshots__/jsfmt.spec.js.snap @@ -973,10 +973,6 @@ ___________________________ - -

-

- =====================================output=====================================
 --------------------------------------------------------------------------------
@@ -1078,10 +1074,6 @@ ___________________________
 
- -

-

- ================================================================================ `; @@ -1182,10 +1174,6 @@ ___________________________ - -

-

- =====================================output=====================================
 --------------------------------------------------------------------------------
@@ -1287,10 +1275,6 @@ ___________________________
 
- -

-

- ================================================================================ `; @@ -1389,10 +1373,6 @@ ___________________________ - -

-

- =====================================output=====================================
 --------------------------------------------------------------------------------
@@ -1486,10 +1466,6 @@ ___________________________
 
- -

-

- ================================================================================ `; @@ -1589,10 +1565,6 @@ ___________________________ - -

-

- =====================================output=====================================
 --------------------------------------------------------------------------------
@@ -1718,14 +1690,6 @@ ___________________________
 
- -
-  
-
-  
- ================================================================================ `; @@ -1825,10 +1789,6 @@ ___________________________ - -

-

- =====================================output=====================================
 --------------------------------------------------------------------------------
@@ -1930,10 +1890,6 @@ ___________________________
 
- -

-

- ================================================================================ `; diff --git a/tests/html/tags/pre.html b/tests/html/tags/pre.html index eec97599b..05b61de54 100644 --- a/tests/html/tags/pre.html +++ b/tests/html/tags/pre.html @@ -87,7 +87,3 @@ ___________________________ - - -

-