Rollup merge of #112728 - Zalathar:spanview-charset, r=Nilstrieb
Add `<meta charset="utf-8">` to `-Zdump-mir-spanview` output Without an explicit `<meta charset>` declaration, some browsers (e.g. Safari) won't detect the page encoding as UTF-8, causing unicode characters in the dump output to display incorrectly.
This commit is contained in:
commit
981a2a2c00
@ -15,8 +15,9 @@
|
|||||||
const ANNOTATION_RIGHT_BRACKET: char = '\u{2989}'; // Unicode `Z NOTATION LEFT BINDING BRACKET`
|
const ANNOTATION_RIGHT_BRACKET: char = '\u{2989}'; // Unicode `Z NOTATION LEFT BINDING BRACKET`
|
||||||
const NEW_LINE_SPAN: &str = "</span>\n<span class=\"line\">";
|
const NEW_LINE_SPAN: &str = "</span>\n<span class=\"line\">";
|
||||||
const HEADER: &str = r#"<!DOCTYPE html>
|
const HEADER: &str = r#"<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>"#;
|
<head>
|
||||||
|
<meta charset="utf-8">"#;
|
||||||
const START_BODY: &str = r#"</head>
|
const START_BODY: &str = r#"</head>
|
||||||
<body>"#;
|
<body>"#;
|
||||||
const FOOTER: &str = r#"</body>
|
const FOOTER: &str = r#"</body>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
<title>spanview_block.main.built.after</title>
|
<title>spanview_block.main.built.after</title>
|
||||||
<style>
|
<style>
|
||||||
.line {
|
.line {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
<title>spanview_statement.main.built.after</title>
|
<title>spanview_statement.main.built.after</title>
|
||||||
<style>
|
<style>
|
||||||
.line {
|
.line {
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
<title>spanview_terminator.main.built.after</title>
|
<title>spanview_terminator.main.built.after</title>
|
||||||
<style>
|
<style>
|
||||||
.line {
|
.line {
|
||||||
|
Loading…
Reference in New Issue
Block a user