0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-02-15 01:57:09 -05:00
This commit is contained in:
Bartek Iwańczuk 2024-12-02 17:44:40 +01:00
parent 9b820ee41a
commit 11d9bd2e69
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
6 changed files with 9 additions and 47 deletions

View file

@ -442,7 +442,6 @@ pub fn format_html(
_ => { _ => {
let mut typescript_config_builder = let mut typescript_config_builder =
get_typescript_config_builder(fmt_options); get_typescript_config_builder(fmt_options);
eprintln!("indent level {}", hints.indent_level);
typescript_config_builder.file_indent_level(hints.indent_level); typescript_config_builder.file_indent_level(hints.indent_level);
let mut typescript_config = typescript_config_builder.build(); let mut typescript_config = typescript_config_builder.build();
typescript_config.line_width = hints.print_width as u32; typescript_config.line_width = hints.print_width as u32;
@ -845,8 +844,6 @@ fn format_ensure_stable(
if next_pass_text == current_text { if next_pass_text == current_text {
return Ok(Some(next_pass_text)); return Ok(Some(next_pass_text));
} }
eprintln!("current text {}", current_text);
eprintln!("next pass test {}", next_pass_text);
current_text = next_pass_text; current_text = next_pass_text;
} }
Ok(None) => { Ok(None) => {

View file

@ -1,20 +0,0 @@
<!-- demo.html -->
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Demo</title>
</head>
<body>
<script type="module">
const supportedFormats =
await globalThis.BarcodeDetector?.getSupportedFormats() ?? [];
if (!supportedFormats.includes("qr_code")) {
document.body.innerHTML +=
'<p><a \
href="https://developer.mozilla.org/en-US/docs/Web/API/BarcodeDetector">QR Code detection</a> is not natively supported by your web browser. 😔</p>';
}
</script>
</body>
</html>

View file

@ -1,9 +0,0 @@
<html>
<body>
<script>
/* some multi-line comment
with function below it */
someFunc();
</script>
</body>
</html>

View file

@ -1,6 +0,0 @@
<!-- tt.html -->
<script>
"{"; // This line cause panic
`
`;
</script>

View file

@ -14,7 +14,7 @@
"output": "broken.out" "output": "broken.out"
}, },
"with_js": { "with_js": {
"args": "fmt with_js.html", "args": "fmt --check with_js.html",
"output": "Checked 1 file\n" "output": "Checked 1 file\n"
} }
} }

View file

@ -1,9 +1,9 @@
<html> <html>
<body> <body>
<script> <script>
/* some multi-line comment /* some multi-line comment
with function below it */ with function below it */
someFunc(); someFunc();
</script> </script>
</body> </body>
</html> </html>