casperin / web-indent

Automatically exported from code.google.com/p/web-indent
0 stars 0 forks source link

wrong indentation after embedded javascript code #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The following html code is wrong indented:
<html>
  <head>
    <title>test</title>
    <script type="text/javascript">
      <!--
      function func1() {
    var i=0;
      }
//-->
</script>
</head>
<body>
  Hola
</body>
</html>

What is the expected output? What do you see instead?
The expected output is:
<html>
  <head>
    <title>test</title>
    <script type="text/javascript">
      <!--
      function func1() {
    var i=0;
      }
      //-->
    </script>
</head>
<body>
  Hola
</body>
</html>

What version of the product are you using? On what operating system?
html indenter, html.vim from 05 Jun 2006 with vim 7.3.509 on Windows 7.

Please provide any additional information below.

Without the javascript code it is indented correctly.

Original issue reported on code.google.com by cesar.ro...@gmail.com on 25 Apr 2012 at 10:19

Attachments: