Test: Update printWidth indicator (#10293)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-01-31 03:45:41 +08:00
1 parent 6f458f46d0
commit 5017d66ea7
1328 files changed
+10117 -18807

No files matched your search

@@ -3,8 +3,7 @@
exports[`attributes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<input name=address maxlength=200>
<input name='address' maxlength='200'>
@@ -159,8 +158,7 @@ and HTML5 Apps. It also documents Mozilla products, like Firefox OS."
exports[`boolean.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<button type="submit">This is valid.</button>
<button type="submit" disabled>This is valid.</button>
@@ -223,8 +221,7 @@ printWidth: 80
exports[`case-sensitive.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div CaseSensitive></div>
@@ -237,8 +234,7 @@ printWidth: 80
exports[`class-bem1.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div class="ProviderMeasuresContainer__heading-row
d-flex
@@ -274,8 +270,7 @@ printWidth: 80
exports[`class-bem2.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div class="news__header widget__content">
<div class="news__tabs">
@@ -328,8 +323,7 @@ printWidth: 80
exports[`class-colon.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<my-tag class="md:foo-bg md:foo-color md:foo--sub-bg md:foo--sub-color xl:foo xl:prefix2 --prefix2--something-else unrelated_class_to_fill_80_chars"></my-tag>
@@ -344,8 +338,7 @@ printWidth: 80
exports[`class-leading-dashes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<my-tag class="__prefix1__foo __prefix1__bar __prefix2__foo prefix2 prefix2--something --prefix2--something-else"></my-tag>
@@ -366,8 +359,7 @@ printWidth: 80
exports[`class-many-short-names.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div aria-hidden="true" class="border rounded-1 flex-shrink-0 bg-gray px-1 text-gray-light ml-1 f6 d-none d-on-nav-focus js-jump-to-badge-jump">
Jump to
@@ -389,8 +381,7 @@ printWidth: 80
exports[`class-names.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img class="
foo
@@ -494,8 +485,7 @@ width="205px" alt="Yahoo"/></a></h1></div></div>
exports[`class-print-width-edge.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div aria-hidden="true" class="border rounded-1 flex-shrink-0 bg-gray px-1 loooooooooooooooooooooooong">
</div>
@@ -512,8 +502,7 @@ printWidth: 80
exports[`dobule-quotes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img src="test.png" alt="John 'ShotGun' Nelson">
@@ -526,8 +515,7 @@ printWidth: 80
exports[`duplicate.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<a href="1" href="2">123</a>
@@ -540,8 +528,7 @@ printWidth: 80
exports[`event-attributes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<button onclick="alert( '1')">click me!</button>
@@ -646,8 +633,7 @@ printWidth: 80
exports[`single-quotes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img src="test.png" alt='John "ShotGun" Nelson'>
@@ -660,8 +646,7 @@ printWidth: 80
exports[`smart-quotes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div
smart-quotes='123 " 456'
@@ -682,8 +667,7 @@ printWidth: 80
exports[`srcset.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img src="/assets/visual.png"
srcset="/assets/visual@0.5.png 400w, /assets/visual.png 805w"
@@ -781,8 +765,7 @@ alt="">
exports[`style.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div style="
@@ -921,8 +904,7 @@ style="css-prop-1: css-value;css-prop-2: css-value;css-prop-3: css-value;css-pro
exports[`without-quotes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p title=Title>String</p>
@@ -3,8 +3,7 @@
exports[`allow-attribute.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<iframe allow></iframe>
<iframe allow=""></iframe>
@@ -4,7 +4,7 @@ exports[`allow-attribute.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<iframe allow="camera 'self'; microphone 'self'"></iframe>
<iframe allow="camera ; microphone"></iframe>
@@ -3,9 +3,8 @@
exports[`event-attributes.html - {"semi":false} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
semi: false
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<button
onclick="[foo, bar].forEach((fn) => void fn())"
@@ -3,8 +3,7 @@
exports[`basic.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<template>
<i class.bind="icon"></i>
@@ -3,8 +3,7 @@
exports[`broken-html.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!--
#7241,
@@ -37,8 +36,7 @@ extra space(s)
exports[`comment.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!--hello world-->
@@ -51,8 +49,7 @@ printWidth: 80
exports[`empty.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
=====================================output=====================================
@@ -63,8 +60,7 @@ printWidth: 80
exports[`empty-doc.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!doctype html>
<html>
@@ -85,8 +81,7 @@ printWidth: 80
exports[`form.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<form>
<div class="form-group">
@@ -275,8 +270,7 @@ printWidth: 80
exports[`hello-world.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -314,8 +308,7 @@ printWidth: 80
exports[`html-comments.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- htmlhint attr-lowercase: false -->
<html>
@@ -340,8 +333,7 @@ printWidth: 80
exports[`html5-boilerplate.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!doctype html>
<html class="no-js" lang="">
@@ -455,8 +447,7 @@ printWidth: 80
exports[`issue-9368.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<strong>a</strong>-&gt;<strong>b</strong>-&gt;
@@ -469,8 +460,7 @@ printWidth: 80
exports[`issue-9368-2.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<strong>a</strong>-<strong>b</strong>-
@@ -483,8 +473,7 @@ printWidth: 80
exports[`issue-9368-3.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
a track<strong>pad</strong>, or a <strong>gyro</strong>scope.
@@ -497,8 +486,7 @@ a track<strong>pad</strong>, or a <strong>gyro</strong>scope.
exports[`more-html.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<html>
<head></head>
@@ -523,8 +511,7 @@ printWidth: 80
exports[`void-elements.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<html>
<head>
@@ -549,8 +536,7 @@ printWidth: 80
exports[`void-elements-2.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<video controls width="250">
<source src="/media/examples/flower.webm"
@@ -588,8 +574,7 @@ printWidth: 80
exports[`with-colon.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- unknown tag with colon -->
<div>
@@ -4,8 +4,7 @@ exports[`block.html - {"bracketSameLine":false} format 1`] = `
====================================options=====================================
bracketSameLine: false
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
text
@@ -35,8 +34,7 @@ exports[`block.html - {"bracketSameLine":true} format 1`] = `
====================================options=====================================
bracketSameLine: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
text
@@ -64,8 +62,7 @@ exports[`embed.html - {"bracketSameLine":false} format 1`] = `
====================================options=====================================
bracketSameLine: false
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
alert(1)</script>
@@ -105,8 +102,7 @@ exports[`embed.html - {"bracketSameLine":true} format 1`] = `
====================================options=====================================
bracketSameLine: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
alert(1)</script>
@@ -144,8 +140,7 @@ exports[`inline.html - {"bracketSameLine":false} format 1`] = `
====================================options=====================================
bracketSameLine: false
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
@@ -192,8 +187,7 @@ exports[`inline.html - {"bracketSameLine":true} format 1`] = `
====================================options=====================================
bracketSameLine: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value">
@@ -236,8 +230,7 @@ exports[`void-elements.html - {"bracketSameLine":false} format 1`] = `
====================================options=====================================
bracketSameLine: false
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value" src="./1.jpg"/>
<img src="./1.jpg"/><img src="./1.jpg"/><img src="./1.jpg"/><img src="./1.jpg"/><img src="./1.jpg"/>
@@ -258,8 +251,7 @@ exports[`void-elements.html - {"bracketSameLine":true} format 1`] = `
====================================options=====================================
bracketSameLine: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img long_long_attribute="long_long_long_long_long_long_long_long_long_long_long_value" src="./1.jpg"/>
<img src="./1.jpg"/><img src="./1.jpg"/><img src="./1.jpg"/><img src="./1.jpg"/><img src="./1.jpg"/>
@@ -3,8 +3,7 @@
exports[`case.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<HTML CLASS="no-js mY-ClAsS">
@@ -3,8 +3,7 @@
exports[`example.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span><![CDATA[<sender>John Smith</sender>]]></span>
@@ -4,8 +4,7 @@ exports[`before-text.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] =
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- hello -->
@@ -23,8 +22,7 @@ exports[`before-text.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] =
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- hello -->
@@ -59,7 +57,7 @@ exports[`before-text.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<!-- hello -->
@@ -76,8 +74,7 @@ printWidth: 1
exports[`before-text.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- hello -->
@@ -95,8 +92,7 @@ exports[`bogus.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<? hello ?>
<!- world ->
@@ -112,8 +108,7 @@ exports[`bogus.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<? hello ?>
<!- world ->
@@ -144,7 +139,7 @@ exports[`bogus.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<? hello ?>
<!- world ->
@@ -159,8 +154,7 @@ printWidth: 1
exports[`bogus.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<? hello ?>
<!- world ->
@@ -176,8 +170,7 @@ exports[`conditional.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] =
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -344,8 +337,7 @@ exports[`conditional.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] =
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -648,7 +640,7 @@ exports[`conditional.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -835,8 +827,7 @@ printWidth: 1
exports[`conditional.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -988,8 +979,7 @@ exports[`for_debugging.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`]
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1035,8 +1025,7 @@ exports[`for_debugging.html - {"htmlWhitespaceSensitivity":"strict"} format 1`]
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1127,7 +1116,7 @@ exports[`for_debugging.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1172,8 +1161,7 @@ printWidth: 1
exports[`for_debugging.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1219,8 +1207,7 @@ exports[`hidden.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1256,8 +1243,7 @@ exports[`hidden.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1328,7 +1314,7 @@ exports[`hidden.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1368,8 +1354,7 @@ printWidth: 1
exports[`hidden.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -1405,8 +1390,7 @@ exports[`surrounding-empty-line.html - {"htmlWhitespaceSensitivity":"ignore"} fo
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<ul><!-- 123
--><li>First</li><!-- 123
@@ -1555,8 +1539,7 @@ exports[`surrounding-empty-line.html - {"htmlWhitespaceSensitivity":"strict"} fo
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<ul><!-- 123
--><li>First</li><!-- 123
@@ -1830,7 +1813,7 @@ exports[`surrounding-empty-line.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<ul><!-- 123
--><li>First</li><!-- 123
@@ -1981,8 +1964,7 @@ See console log:
exports[`surrounding-empty-line.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<ul><!-- 123
--><li>First</li><!-- 123
@@ -3,8 +3,7 @@
exports[`empty.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<style></style>
@@ -17,8 +16,7 @@ printWidth: 80
exports[`less.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<style type="text/less">
@nice-blue: #5B83AD;
@@ -63,8 +61,7 @@ printWidth: 80
exports[`mj-style.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<mjml>
@@ -85,8 +82,7 @@ printWidth: 80
exports[`postcss.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<style type="text/css">
body { background: navy; color: yellow; }
@@ -117,8 +113,7 @@ printWidth: 80
exports[`scss.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<style type="text/x-scss">
$font-stack: Helvetica, sans-serif;
@@ -193,8 +188,7 @@ printWidth: 80
exports[`simple.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -240,8 +234,7 @@ printWidth: 80
exports[`single-style.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<style>a { color: red; }</style>
<style>
@@ -4,8 +4,7 @@ exports[`cursor-0.html format 1`] = `
====================================options=====================================
cursorOffset: 354
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- At the time of adding this test, the cursor positioning we end up with
here seems clearly wrong.
@@ -34,8 +33,7 @@ exports[`cursor-1.html format 1`] = `
====================================options=====================================
cursorOffset: 354
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- At the time of adding this test, the cursor positioning we end up with
here seems clearly wrong.
@@ -76,8 +74,7 @@ exports[`cursor-2.html format 1`] = `
====================================options=====================================
cursorOffset: 48
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>bla bla
@@ -106,8 +103,7 @@ exports[`cursor-3.html format 1`] = `
====================================options=====================================
cursorOffset: 43
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>bla bla
@@ -136,8 +132,7 @@ exports[`cursor-4.html format 1`] = `
====================================options=====================================
cursorOffset: 399
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- At the time of adding this test, the cursor positioning we end up with
here seems wrong, or at least suboptimal.
@@ -178,8 +173,7 @@ exports[`cursor-5.html format 1`] = `
====================================options=====================================
cursorOffset: 65
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>bla bla
@@ -208,8 +202,7 @@ exports[`cursor-6.html format 1`] = `
====================================options=====================================
cursorOffset: 660
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- At the time of adding this test, the cursor positioning we end up with
here seems clearly wrong.
@@ -256,8 +249,7 @@ exports[`cursor-7.html format 1`] = `
====================================options=====================================
cursorOffset: 470
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- At the time of adding this test, the cursor positioning we end up with
here seems clearly wrong.
@@ -300,8 +292,7 @@ exports[`cursor-8.html format 1`] = `
====================================options=====================================
cursorOffset: 137
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>bla bla
@@ -3,8 +3,7 @@
exports[`html4.01_frameset.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
@@ -36,8 +35,7 @@ printWidth: 80
exports[`html4.01_strict.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
@@ -69,8 +67,7 @@ printWidth: 80
exports[`html4.01_transitional.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
@@ -102,8 +99,7 @@ printWidth: 80
exports[`html5.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -134,8 +130,7 @@ printWidth: 80
exports[`ibm_system.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd">
@@ -148,8 +143,7 @@ printWidth: 80
exports[`legacy_string.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html SYSTEM "about:legacy-compat">
@@ -162,8 +156,7 @@ printWidth: 80
exports[`xhtml1.0_frameset.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
@@ -178,8 +171,7 @@ printWidth: 80
exports[`xhtml1.0_strict.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -193,8 +185,7 @@ printWidth: 80
exports[`xhtml1.0_transitional.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
@@ -209,8 +200,7 @@ printWidth: 80
exports[`xhtml1.1.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
@@ -3,8 +3,7 @@
exports[`custom-parser.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---mycustomparser
@@ -32,8 +31,7 @@ slug: home
exports[`empty.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
---
@@ -53,8 +51,7 @@ printWidth: 80
exports[`empty2.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
---
@@ -75,8 +72,7 @@ printWidth: 80
exports[`issue-9042.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
layout: foo
@@ -98,8 +94,7 @@ Test <a href="https://prettier.io">abc</a>.
exports[`issue-9042-no-empty-line.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
layout: foo
@@ -120,8 +115,7 @@ Test <a href="https://prettier.io">abc</a>.
exports[`unicode.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
title: "ABC 漢字 🇯🇵"
@@ -3,9 +3,8 @@
exports[`template.html - {"singleQuote":true} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
singleQuote: true
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script id="entry-template" type="text/x-handlebars-template">
<div class="entry">
@@ -39,8 +38,7 @@ singleQuote: true
exports[`template.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script id="entry-template" type="text/x-handlebars-template">
<div class="entry">
@@ -3,8 +3,7 @@
exports[`example.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!--interpolations in html should be treated as normal text--><div>Fuga magnam facilis. Voluptatem quaerat porro.{{
@@ -3,8 +3,7 @@
exports[`empty.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script></script>
@@ -17,8 +16,7 @@ printWidth: 80
exports[`js.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script type="text/javascript">
var message = "Alert!";
@@ -85,8 +83,7 @@ printWidth: 80
exports[`simple.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -131,8 +128,7 @@ printWidth: 80
exports[`single-script.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script>alert('test');</script>
<script>
@@ -153,8 +149,7 @@ printWidth: 80
exports[`something-else.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script type="text/template">
<div>
@@ -173,8 +168,7 @@ printWidth: 80
exports[`template-literal.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -216,8 +210,7 @@ printWidth: 80
exports[`typescript.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script type="application/x-typescript">
class Student {
@@ -3,8 +3,7 @@
exports[`display.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
<!-- display: inline -->
@@ -3,8 +3,7 @@
exports[`html-with-css-style.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -3,8 +3,7 @@
exports[`html-with-js-script.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -35,8 +34,7 @@ printWidth: 80
exports[`script-tag-escaping.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script>
document.write(/* HTML */ \`
@@ -3,8 +3,7 @@
exports[`html-with-markdown-script.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -3,8 +3,7 @@
exports[`html-with-ts-script.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -3,8 +3,7 @@
exports[`unknown-lang.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -3,8 +3,7 @@
exports[`standalone-end-marker.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div></div
>
@@ -4,8 +4,7 @@ exports[`no-pragma.html - {"insertPragma":true} format 1`] = `
====================================options=====================================
insertPragma: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
@@ -27,9 +26,8 @@ printWidth: 80
exports[`no-pragma.html - {"requirePragma":true} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
requirePragma: true
| printWidth
printWidth: 80 (default) |
=====================================input======================================
@@ -53,8 +51,7 @@ exports[`with-pragma.html - {"insertPragma":true} format 1`] = `
====================================options=====================================
insertPragma: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
@@ -74,9 +71,8 @@ printWidth: 80
exports[`with-pragma.html - {"requirePragma":true} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
requirePragma: true
| printWidth
printWidth: 80 (default) |
=====================================input======================================
@@ -97,8 +93,7 @@ exports[`with-pragma-2.html - {"insertPragma":true} format 1`] = `
====================================options=====================================
insertPragma: true
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
@@ -118,9 +113,8 @@ printWidth: 80
exports[`with-pragma-2.html - {"requirePragma":true} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
requirePragma: true
| printWidth
printWidth: 80 (default) |
=====================================input======================================
@@ -3,8 +3,7 @@
exports[`cases.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
123<!--prettier-ignore-->456
@@ -22,8 +21,7 @@ printWidth: 80
exports[`document.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!doctype html>
<html class="no-js" lang="en">
@@ -120,8 +118,7 @@ printWidth: 80
exports[`issue-15738.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<head></head>
<link
@@ -174,8 +171,7 @@ But this HTML is <mark>actually parsed</mark> just like **normal**.
exports[`long_lines.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- prettier-ignore -->
A super long string that has been marked as ignore because it was probably generated by some script.
@@ -218,8 +214,7 @@ A super long string that has been marked as ignore because it was probably gener
exports[`unclosed.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- prettier-ignore -->
<div>
@@ -238,8 +233,7 @@ printWidth: 80
exports[`unclosed2.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- prettier-ignore -->
<p>
@@ -3,8 +3,7 @@
exports[`babel.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script type="text/babel" data-presets="react" data-type="module">
import { h,
@@ -53,8 +52,7 @@ alert(1)
exports[`legacy.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script>
@@ -88,8 +86,7 @@ alert(2)
exports[`module.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script type="module">
import prettier from "prettier/standalone";
@@ -134,8 +131,7 @@ async function foo() {
exports[`module-attributes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script src="foo.wasm" type="module" withtype="webassembly"></script>
@@ -148,8 +144,7 @@ printWidth: 80
exports[`script.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<script type="application/ld+json">
{ "json": true }
@@ -3,9 +3,8 @@
exports[`single-attribute-per-line.html - {"singleAttributePerLine":true} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
singleAttributePerLine: true
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div data-a="1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
@@ -74,8 +73,7 @@ singleAttributePerLine: true
exports[`single-attribute-per-line.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div data-a="1">
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
@@ -3,8 +3,7 @@
exports[`invalid.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img src="a"
srcset="
@@ -3,8 +3,7 @@
exports[`svg.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -4,8 +4,7 @@ exports[`svg.html - {"embeddedLanguageFormatting":"off"} format 1`] = `
====================================options=====================================
embeddedLanguageFormatting: "off"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -74,8 +73,7 @@ element.fillStyle = 'currentColor'
exports[`svg.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html>
@@ -146,8 +144,7 @@ exports[`svg.svg - {"embeddedLanguageFormatting":"off"} format 1`] = `
====================================options=====================================
embeddedLanguageFormatting: "off"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<script>
@@ -200,8 +197,7 @@ element.fillStyle = 'currentColor'
exports[`svg.svg format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
<script>
@@ -3,8 +3,7 @@
exports[`symbol_entitites.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p>I will display &euro;</p>
<p>I will display &excl;</p>
@@ -4,8 +4,7 @@ exports[`case-sensitive.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`]
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<CaseSensitive CaseSensitive="true">hello world</CaseSensitive>
@@ -19,8 +18,7 @@ exports[`case-sensitive.html - {"htmlWhitespaceSensitivity":"strict"} format 1`]
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<CaseSensitive CaseSensitive="true">hello world</CaseSensitive>
@@ -47,7 +45,7 @@ exports[`case-sensitive.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<CaseSensitive CaseSensitive="true">hello world</CaseSensitive>
@@ -64,8 +62,7 @@ printWidth: 1
exports[`case-sensitive.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<CaseSensitive CaseSensitive="true">hello world</CaseSensitive>
@@ -79,8 +76,7 @@ exports[`closing-at-start.html - {"htmlWhitespaceSensitivity":"ignore"} format 1
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
aaaaaaaaaa
@@ -125,8 +121,7 @@ exports[`closing-at-start.html - {"htmlWhitespaceSensitivity":"strict"} format 1
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
aaaaaaaaaa
@@ -203,7 +198,7 @@ exports[`closing-at-start.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<div>
aaaaaaaaaa
@@ -244,8 +239,7 @@ printWidth: 1
exports[`closing-at-start.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
aaaaaaaaaa
@@ -287,8 +281,7 @@ exports[`custom-element.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`]
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<app-foo></app-foo>
<app-bar></app-bar>
@@ -304,8 +297,7 @@ exports[`custom-element.html - {"htmlWhitespaceSensitivity":"strict"} format 1`]
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<app-foo></app-foo>
<app-bar></app-bar>
@@ -336,7 +328,7 @@ exports[`custom-element.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<app-foo></app-foo>
<app-bar></app-bar>
@@ -351,8 +343,7 @@ printWidth: 1
exports[`custom-element.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<app-foo></app-foo>
<app-bar></app-bar>
@@ -368,8 +359,7 @@ exports[`marquee.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<marquee>This text will scroll from right to left</marquee>
@@ -406,8 +396,7 @@ exports[`marquee.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<marquee>This text will scroll from right to left</marquee>
@@ -474,7 +463,7 @@ exports[`marquee.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<marquee>This text will scroll from right to left</marquee>
@@ -539,8 +528,7 @@ printWidth: 1
exports[`marquee.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<marquee>This text will scroll from right to left</marquee>
@@ -577,8 +565,7 @@ exports[`menu.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<menu>
<li><button onclick="copy()">Copy</button></li>
@@ -600,8 +587,7 @@ exports[`menu.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<menu>
<li><button onclick="copy()">Copy</button></li>
@@ -644,7 +630,7 @@ exports[`menu.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<menu>
<li><button onclick="copy()">Copy</button></li>
@@ -689,8 +675,7 @@ printWidth: 1
exports[`menu.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<menu>
<li><button onclick="copy()">Copy</button></li>
@@ -712,8 +697,7 @@ exports[`openging-at-end.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p
>Want to write us a letter? Use our<a
@@ -783,8 +767,7 @@ exports[`openging-at-end.html - {"htmlWhitespaceSensitivity":"strict"} format 1`
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p
>Want to write us a letter? Use our<a
@@ -904,7 +887,7 @@ exports[`openging-at-end.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<p
>Want to write us a letter? Use our<a
@@ -1003,8 +986,7 @@ printWidth: 1
exports[`openging-at-end.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p
>Want to write us a letter? Use our<a
@@ -1067,8 +1049,7 @@ exports[`option.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<select><option>Blue</option><option>Green</option><optgroup label="Darker"><option>Dark Blue</option><option>Dark Green</option></optgroup></select>
<input list=colors>
@@ -1096,8 +1077,7 @@ exports[`option.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<select><option>Blue</option><option>Green</option><optgroup label="Darker"><option>Dark Blue</option><option>Dark Green</option></optgroup></select>
<input list=colors>
@@ -1148,7 +1128,7 @@ exports[`option.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<select><option>Blue</option><option>Green</option><optgroup label="Darker"><option>Dark Blue</option><option>Dark Green</option></optgroup></select>
<input list=colors>
@@ -1195,8 +1175,7 @@ printWidth: 1
exports[`option.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<select><option>Blue</option><option>Green</option><optgroup label="Darker"><option>Dark Blue</option><option>Dark Green</option></optgroup></select>
<input list=colors>
@@ -1224,8 +1203,7 @@ exports[`pre.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<pre>
--------------------------------------------------------------------------------
@@ -1449,8 +1427,7 @@ exports[`pre.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<pre>
--------------------------------------------------------------------------------
@@ -1887,7 +1864,7 @@ exports[`pre.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<pre>
--------------------------------------------------------------------------------
@@ -2134,8 +2111,7 @@ ___________________________
exports[`pre.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<pre>
--------------------------------------------------------------------------------
@@ -2359,8 +2335,7 @@ exports[`seach.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -2420,8 +2395,7 @@ exports[`seach.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -2540,7 +2514,7 @@ exports[`seach.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -2633,8 +2607,7 @@ printWidth: 1
exports[`seach.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html>
<html lang="en">
@@ -2694,8 +2667,7 @@ exports[`tags.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<br/>
<br />
@@ -3056,8 +3028,7 @@ exports[`tags.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<br/>
<br />
@@ -3640,7 +3611,7 @@ exports[`tags.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<br/>
<br />
@@ -4191,8 +4162,7 @@ printWidth: 1
exports[`tags.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<br/>
<br />
@@ -4526,8 +4496,7 @@ exports[`tags2.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>before<noscript>noscript long long long long long long long long</noscript>after</div>
@@ -4591,8 +4560,7 @@ exports[`tags2.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>before<noscript>noscript long long long long long long long long</noscript>after</div>
@@ -4701,7 +4669,7 @@ exports[`tags2.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<div>before<noscript>noscript long long long long long long long long</noscript>after</div>
@@ -4804,8 +4772,7 @@ printWidth: 1
exports[`tags2.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>before<noscript>noscript long long long long long long long long</noscript>after</div>
@@ -4868,8 +4835,7 @@ exports[`textarea.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
<div>
@@ -4941,8 +4907,7 @@ exports[`textarea.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] = `
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
<div>
@@ -5085,7 +5050,7 @@ exports[`textarea.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<div>
<div>
@@ -5164,8 +5129,7 @@ lorem ipsum</textarea
exports[`textarea.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>
<div>
@@ -5237,8 +5201,7 @@ exports[`unsupported.html - {"htmlWhitespaceSensitivity":"ignore"} format 1`] =
====================================options=====================================
htmlWhitespaceSensitivity: "ignore"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<center></center>
@@ -5252,8 +5215,7 @@ exports[`unsupported.html - {"htmlWhitespaceSensitivity":"strict"} format 1`] =
====================================options=====================================
htmlWhitespaceSensitivity: "strict"
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<center></center>
@@ -5280,7 +5242,7 @@ exports[`unsupported.html - {"printWidth":1} format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 1
| printWidth
| printWidth: 1
=====================================input======================================
<center></center>
@@ -5293,8 +5255,7 @@ printWidth: 1
exports[`unsupported.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<center></center>
@@ -3,8 +3,7 @@
exports[`object-prototype-properties.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<constructor>constructor</constructor>
<hasOwnProperty>hasOwnProperty</hasOwnProperty>
@@ -3,8 +3,7 @@
exports[`tag-should-in-fill.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<a-long-long-long-element>foo bar foo bar
foo bar foo bar foo bar foo bar foo bar
@@ -3,8 +3,7 @@
exports[`break-tags.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<a>Lorem</a>, ispum dolor sit <strong>amet</strong>.
<div><a>Lorem</a>, ispum dolor sit <strong>amet</strong>.</div>
@@ -23,8 +22,7 @@ printWidth: 80
exports[`display-inline-block.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<button>Click here! Click here! Click here! Click here! Click here! Click here!</button>
<button>
@@ -72,8 +70,7 @@ Click here! Click here! Click here! Click here! Click here! Click here!
exports[`display-none.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!DOCTYPE html><HTML CLASS="no-js mY-ClAsS"><HEAD><META CHARSET="utf-8"><TITLE>My tITlE</TITLE><META NAME="description" content="My CoNtEnT"></HEAD></HTML>
@@ -93,8 +90,7 @@ printWidth: 80
exports[`fill.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p>
<img
@@ -128,8 +124,7 @@ printWidth: 80
exports[`inline-leading-trailing-spaces.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span> 321 </span>
@@ -146,8 +141,7 @@ printWidth: 80
exports[`inline-nodes.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce cursus massa vel augue
vestibulum facilisis in porta turpis. Ut faucibus lectus sit amet urna consectetur dignissim.
@@ -196,8 +190,7 @@ conubia nostra, per inceptos himenaeos. Donec in ornare velit.</p>
exports[`nested-inline-without-whitespace.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<a href="/wiki/Help:IPA/English" title="Help:IPA/English">/<span style="border-bottom:1px dotted"><span title="/ˌ/: secondary stress follows">ˌ</span
><span title="/ɪ/: &#39;i&#39; in &#39;kit&#39;">ɪ</span
@@ -240,8 +233,7 @@ printWidth: 80
exports[`non-breaking-whitespace.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- normal whitespaces -->
<span>Nihil aut odit omnis. Quam maxime est molestiae. Maxime dolorem dolores voluptas quaerat ut qui sunt vitae error.</span>
@@ -269,8 +261,7 @@ printWidth: 80
exports[`snippet: #18 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div> </div>
=====================================output=====================================
@@ -282,8 +273,7 @@ printWidth: 80
exports[`snippet: #19 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>   </div>
=====================================output=====================================
@@ -295,8 +285,7 @@ printWidth: 80
exports[`snippet: #20 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>    </div>
=====================================output=====================================
@@ -308,8 +297,7 @@ printWidth: 80
exports[`snippet: #21 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<div>     </div>
=====================================output=====================================
@@ -321,8 +309,7 @@ printWidth: 80
exports[`snippet: #22 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span> </span>
=====================================output=====================================
@@ -334,8 +321,7 @@ printWidth: 80
exports[`snippet: #23 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span>   </span>
=====================================output=====================================
@@ -347,8 +333,7 @@ printWidth: 80
exports[`snippet: #24 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span>    </span>
=====================================output=====================================
@@ -360,8 +345,7 @@ printWidth: 80
exports[`snippet: #25 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span>     </span>
=====================================output=====================================
@@ -373,8 +357,7 @@ printWidth: 80
exports[`snippet: #26 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img/> <img/>
=====================================output=====================================
@@ -386,8 +369,7 @@ printWidth: 80
exports[`snippet: #27 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img/>   <img/>
=====================================output=====================================
@@ -399,8 +381,7 @@ printWidth: 80
exports[`snippet: #28 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img/>    <img/>
=====================================output=====================================
@@ -412,8 +393,7 @@ printWidth: 80
exports[`snippet: #29 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<img/>     <img/>
=====================================output=====================================
@@ -425,8 +405,7 @@ printWidth: 80
exports[`snippet: #30 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<i />   |   <i />
=====================================output=====================================
@@ -438,8 +417,7 @@ printWidth: 80
exports[`snippet: #31 format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<p><span>X</span>   or   <span>Y</span></p><p>X   or   Y</p>
=====================================output=====================================
@@ -452,8 +430,7 @@ printWidth: 80
exports[`snippet: \`U+2005\` should format like \`U+005F\` not like \`U+0020\` format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- U+2005 -->
<div>before<span> </span>afterafterafterafterafterafterafterafterafterafterafterafterafterafterafterafterafterafterafterafter</div>
@@ -483,8 +460,7 @@ printWidth: 80
exports[`snippet: \`U+2005\` should indent like \`U+005F\` not like \`U+0020\` format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<!-- U+2005 -->
<script type="text/unknown" lang="unknown">
@@ -536,8 +512,7 @@ printWidth: 80
exports[`surrounding-linebreak.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<span>123</span>
<span>
@@ -574,8 +549,7 @@ printWidth: 80
exports[`table.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<table>
<thead>
@@ -641,8 +615,7 @@ printWidth: 80
exports[`template.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
<template>
<template>foo</template>
@@ -3,8 +3,7 @@
exports[`invalid.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
[
@@ -34,8 +33,7 @@ this is INVALID yaml
exports[`yaml.html format 1`] = `
====================================options=====================================
parsers: ["html"]
printWidth: 80
| printWidth
printWidth: 80 (default) |
=====================================input======================================
---
hello: world