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

Improve text formatting when dropping widgets from Palette view

    Description

    1. Suppose we have the following code:

    <div data-role="page" id="page-1">
      <div data-role="content">|
      </div>
    </div>
    
    marks the cursor position.

    2. Press Enter right after <div data-role="content">:

    <div data-role="page" id="page-1">
      <div data-role="content">
      |
      </div>
    </div>
    

    3. Then click on button widget in jQuery Mobile Palette. Click on OK.
    The following code is generated:

    <div data-role="page" id="page-1">
      <div data-role="content">
      <a href="" id="button-1" data-role="button">Link button</a>
    
      
      </div>
    </div>
    

    But it should be

    <div data-role="page" id="page-1">
      <div data-role="content">
        <a href="" id="button-1" data-role="button">Link button</a>
      
      </div>
    </div>
    

    instead.

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

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vrubezhny Victor Rubezhny
                Reporter:
                akazakov Alexey Kazakov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: