weird indentation after <script> tag

Bug #763289 reported by Tao Peng on 2011-04-17
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
nXhtml
Undecided
Unassigned

Bug Description

<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>

It seems to be a bug in the function `mumamo-update-cmirr-buffer'.

Environment:
Emacs 23.3
nxhtml 2.09 beta

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>

I think this bug is the same one as I reported: https://bugs.launchpad.net/nxhtml/+bug/1025117

I pointed to the revision that likely caused the bug in that link.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers