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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: 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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code