Skip to content

Commit 04a5ce0

Browse files
committed
add two more mhtml tests
* test/manual/indent/html-multi-2.html: New file. * test/manual/indent/html-multi-3.html: New file.
1 parent 59409f4 commit 04a5ce0

File tree

2 files changed

+70
-0
lines changed

2 files changed

+70
-0
lines changed

test/manual/indent/html-multi-2.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
<!--
6+
<script>
7+
// No indent in a comment
8+
if (true) {
9+
do not change;
10+
}
11+
</script>
12+
-->
13+
14+
<style type="text/css">
15+
h1 {
16+
font-family: 'Spinnaker', sans-serif;
17+
}
18+
</style>
19+
<script>
20+
var a = 4 < 5;
21+
function() {
22+
if (x > 75)
23+
return 25;
24+
return "hello";
25+
}
26+
</script>
27+
</head>
28+
<body>
29+
</body>
30+
<!--
31+
Local Variables:
32+
mhtml-tag-relative-indent: nil
33+
End:
34+
-->
35+
</html>

test/manual/indent/html-multi-3.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>test</title>
5+
<!--
6+
<script>
7+
// No indent in a comment
8+
if (true) {
9+
do not change;
10+
}
11+
</script>
12+
-->
13+
14+
<style type="text/css">
15+
h1 {
16+
font-family: 'Spinnaker', sans-serif;
17+
}
18+
</style>
19+
<script>
20+
var a = 4 < 5;
21+
function() {
22+
if (x > 75)
23+
return 25;
24+
return "hello";
25+
}
26+
</script>
27+
</head>
28+
<body>
29+
</body>
30+
<!--
31+
Local Variables:
32+
mhtml-tag-relative-indent: ignore
33+
End:
34+
-->
35+
</html>

0 commit comments

Comments
 (0)