Aptana Studio
  1. Aptana Studio
  2. APSTUD-3289

RXML Editor Inserts "\n"s Upon Uncommenting

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: None None
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Aptana Studio 3.0.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      Aptana Studio 3, build: 3.0.4.201108101506
      Windows 7

      Description

      If you select a content block in the RXML editor, invoke commenting (CTRL+/), then select all text and uncomment (CTRL+/), the editor will insert "\n"s in the text.

      Steps to Replicate :

      1) Open Aptana Studio
      2) Open an empty, saved RXML file
      3) Place the following content in that file :

      xml.instruct!
      xml.comment! "a comment"
      xml.feed "xmlns" => "http://www.w3.org/2005/Atom" do
        xml.title "My Atom Feed"
        xml.subtitle h(@feed.subtitle), "type" => 'html'
        xml.link url_for( :only_path => false, 
                          :controller => 'feed',
                          :action => 'atom' )
        xml.updated @updated.iso8601
        xml.author do
          xml.name "Jens-Christian Fischer"
          xml.email "jcfischer@gmail.com"
        end
        @entries.each do |entry|
          xml.entry do
            xml.title entry.title
            xml.link "href" => url_for ( :only_path => false,
                                         :controller => 'entries',
                                         :action => 'show',
                                         :id => entry )
            xml.id entry.urn
            xml.updated entry.updated.iso8601
            xml.summary h(entry.summary)
          end
        end
      end
      

      4) Select all content (CTRL+A)
      5) Invoke commenting (CTRL+/) to comment selected text
      6) Select all content again (CTRL+A)
      7) Invoke commenting again (CTRL+/) to uncomment selected text

      Actual Results :

      You will note the editor has inserted "\n"s into the content.

      Expected Results :

      Editor should maintain data integrity.

        Issue Links

          Activity

            People

            • Assignee:
              Chris Williams
              Reporter:
              Joel Witt (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: