Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15111

Bad text formatting when inserting JS/CSS from jQuery Mobile Widget Palette

XMLWordPrintable

    1. We should use the preferences/settings of the editor to insert space symbols (N spaces/tab) instead of hardcoded " ".

    2. Suppose we have the following code:

    <!DOCTYPE html>
    <html>
      <body>
    
      </body>
    </html>
    

    After inserting JS/CSS result will be:

    <!DOCTYPE html>
    <html>
      <head>
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
        <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
        <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
     
      </head>
     <body>
    
      </body>
    </html>
    

    There is empty line in <head>

          nivologd@gmail.com Denis Golovin (Inactive)
          dazarov_jira Daniel Azarov (Inactive)
          Votes:
          0 Vote for this issue
          Watchers:
          4 Start watching this issue

            Created:
            Updated:
            Resolved: