Uploaded image for project: 'Aptana Studio'
  1. Aptana Studio
  2. APSTUD-4288

Formatting an embedded JavaScript function adds too many new lines

    Details

      Description

      Format this code multiple times. The JS formatter seems to add two new-line breaks at the end of the JS partition.

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html dir="ltr" lang="en-US">
        <head>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
          <script type="text/javascript">
            function aaa(siteXml, selector) {
            }
          </script>
          <style type="text/css">
            .version {
              text-align: center;
            }
          </style>
        </head>
        <body class="page page-id-1233 page-child parent-pageid-5 page-template page-template-interior_download-php"></body>
      </html>
      

      Formatting result:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html dir="ltr" lang="en-US">
        <head>
          <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
          <script type="text/javascript">
            function aaa(siteXml, selector) {
            }
       
       
          </script>
          <style type="text/css">
            .version {
              text-align: center;
            }
          </style>
        </head>
        <body class="page page-id-1233 page-child parent-pageid-5 page-template page-template-interior_download-php"></body>
      </html>
      

        Attachments

          Activity

            People

            • Assignee:
              sgibly Shalom Gibly
              Reporter:
              sgibly Shalom Gibly
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code