Aptana Studio
  1. Aptana Studio
  2. APSTUD-2920

CSS embedded in HTML does not indent properly around tags (when selected)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: High High
    • Resolution: Fixed
    • Affects Version/s: Aptana Studio 3.0.2, Aptana Studio 3.0.3
    • Fix Version/s: Aptana Studio 3.0.4
    • Component/s: None
    • Labels:
      None

      Description

      using the sample:

      <!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 setVersion(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>
      
      1. Select All (the whole file)
      2. Format

      formatting it gives:

      
      <!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 setVersion(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>
      

      This makes formatting unusable for HTML. .version should be on a new line, and the </style> is not indented correctly.

      Hopefully a small fix.

        Issue Links

          Activity

          Hide
          Shalom Gibly added a comment -

          Fixed

          Show
          Shalom Gibly added a comment - Fixed
          Hide
          Joel Witt (Inactive) added a comment -

          Aptana Studio 3, build: 3.0.4.201107261714
          Windows 7

          Placed Description sample content in a new HTML file, formatted and verified editor correctly handles "version". Editor does not handle function correctly – this is referenced by APSTUD-3102.

          Show
          Joel Witt (Inactive) added a comment - Aptana Studio 3, build: 3.0.4.201107261714 Windows 7 Placed Description sample content in a new HTML file, formatted and verified editor correctly handles "version". Editor does not handle function correctly – this is referenced by APSTUD-3102 .

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development