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

List:       kde-commits
Subject:    extragear/office/kile
From:       Holger Danielsson <holger.danielsson () versanet ! de>
Date:       2009-12-01 12:49:25
Message-ID: 1259671765.225725.24921.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1057077 by danielsson:

'%n' is a better metacharacter than '\n' for newline commands in completion of \
abbreviations

 M  +1 -1      ChangeLog  
 M  +1 -1      src/codecompletion.cpp  
 M  +1 -1      src/widgets/abbreviationview.cpp  


--- trunk/extragear/office/kile/ChangeLog #1057076:1057077
@@ -13,7 +13,7 @@
  - Make the output view use KDE colours (#215389)
 
 Features:
- - Allow newline characters (\n) and cursor position (%C) in the expansion text of \
abbreviations + - Allow newline characters (%n) and cursor position (%C) in the \
                expansion text of abbreviations
  - Save and restore editor settings for regular documents and for projects (requires \
                KDE libraries 4.4).
  - Add a sidebar tab which allows to display CWL word lists
  - Improve the graphics inclusion dialog
--- trunk/extragear/office/kile/src/codecompletion.cpp #1057076:1057077
@@ -774,7 +774,7 @@
 {
 	// replace abbreviation and take care of newlines  
 	QString completionText = data(index(row, KTextEditor::CodeCompletionModel::Name, \
                QModelIndex()), Qt::DisplayRole).toString();
-	completionText.replace("\\n","\n");
+	completionText.replace("%n","\n");
 	document->replaceText(word, completionText);
 	
 	// look if there is a %C-wish to place the cursor
--- trunk/extragear/office/kile/src/widgets/abbreviationview.cpp #1057076:1057077
@@ -97,7 +97,7 @@
 {
 	if(item) {
 		QString s = item->text(AbbreviationView::ALVexpansion);
-		s.replace("\\n","\n");
+		s.replace("%n","\n");
 		emit( sendText(s) );
 	}
 }


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

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