Comment 1 for bug 763289

Revision history for this message
Fred Kroon (fwkroon) wrote :

Seeing the same bug in Emacs 24.0.93.1, nxhtml 2.09 beta (revision 834).

Looks like the indent is set to the number of chars between the script tags, including newlines. Doesn't seem to occur if the script is all on one line; for example,

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head><title>test</title></head>
  <body>
    <script type="text/javascript">var foo = function () {alert('hello world');};</script>
    this line is weird after indent
  </body>
</html>