emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 04a5ce0 12/12: add two more mhtml tests


From: Tom Tromey
Subject: [Emacs-diffs] master 04a5ce0 12/12: add two more mhtml tests
Date: Wed, 5 Apr 2017 18:17:31 -0400 (EDT)

branch: master
commit 04a5ce0b65fcc8f49c26b74b30b37322b559a0d5
Author: Tom Tromey <address@hidden>
Commit: Tom Tromey <address@hidden>

    add two more mhtml tests
    
    * test/manual/indent/html-multi-2.html: New file.
    * test/manual/indent/html-multi-3.html: New file.
---
 test/manual/indent/html-multi-2.html | 35 +++++++++++++++++++++++++++++++++++
 test/manual/indent/html-multi-3.html | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)

diff --git a/test/manual/indent/html-multi-2.html 
b/test/manual/indent/html-multi-2.html
new file mode 100644
index 0000000..fac5eb1
--- /dev/null
+++ b/test/manual/indent/html-multi-2.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>test</title>
+    <!--
+       <script>
+         // No indent in a comment
+         if (true) {
+         do not change;
+         }
+       </script>
+       -->
+
+       <style type="text/css">
+       h1 {
+           font-family: 'Spinnaker', sans-serif;
+       }
+       </style>
+       <script>
+       var a = 4 < 5;
+       function() {
+           if (x > 75)
+               return 25;
+           return "hello";
+       }
+       </script>
+  </head>
+  <body>
+  </body>
+  <!--
+      Local Variables:
+      mhtml-tag-relative-indent: nil
+      End:
+    -->
+</html>
diff --git a/test/manual/indent/html-multi-3.html 
b/test/manual/indent/html-multi-3.html
new file mode 100644
index 0000000..62daf1d
--- /dev/null
+++ b/test/manual/indent/html-multi-3.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html>
+  <head>
+    <title>test</title>
+    <!--
+       <script>
+         // No indent in a comment
+         if (true) {
+         do not change;
+         }
+       </script>
+       -->
+
+       <style type="text/css">
+h1 {
+    font-family: 'Spinnaker', sans-serif;
+}
+       </style>
+       <script>
+var a = 4 < 5;
+function() {
+    if (x > 75)
+       return 25;
+    return "hello";
+}
+       </script>
+  </head>
+  <body>
+  </body>
+  <!--
+      Local Variables:
+      mhtml-tag-relative-indent: ignore
+      End:
+    -->
+</html>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]