[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE_3_2_BRANCH: quanta/quanta
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2004-01-23 14:53:58
Message-ID: 20040123145358.249091911 () office ! kde ! org
[Download RAW message or body]

CVS commit by amantia: 

Backport this change, as it can be really annoying: don't insert newlines during the autocompletion.


  M +4 -4      document.cpp   1.240.2.1


--- quanta/quanta/document.cpp  #1.240:1.240.2.1
@@ -456,13 +456,13 @@ bool Document::insertChildTags(QTag *tag
             (childTag->isOptional() && !qConfig.closeOptionalTags)) )
       {
-        insertText("\n<" +tagStr + "/>", true, false);
+        insertText("<" +tagStr + "/>", true, false);
       } else
       {
-        insertText("\n<" +tagStr + ">", true, false);
+        insertText("<" +tagStr + ">", true, false);
       }
       QString closingStr;
       if (insertChildTags(childTag, tag))
       {
-        closingStr = "\n";
+        closingStr = "";
       }
       if ( (!childTag->isSingle() && !childTag->isOptional() && qConfig.closeTags) ||
@@ -857,5 +857,5 @@ bool Document::xmlAutoCompletion(int lin
       {
         reparseEnabled = false;
-        insertText("\n", false, false);
+//        insertText("\n", false, false);
         insertChildTags(tag);
         reparseEnabled = true;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic