Bug 105376 - Application output to the output window is removing leading spaces.
Summary: Application output to the output window is removing leading spaces.
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Output Views (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-09 21:51 UTC by Jon Smirl
Modified: 2006-02-20 05:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Smirl 2005-05-09 21:51:25 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

Application output to the application window is removing leading spaces from each line of output. Kdevelop is removing the spaces since when I run the app outside of kdevelop the spaces are there. My program produces command line output and the spaces are used to line things up.
Comment 1 Matt Rogers 2006-02-20 05:24:06 UTC
SVN commit 511489 by mattr:

don't strip whitespace from the line when inserting it into the application output.
BUG: 105376



 M  +2 -2      processwidget.cpp  


--- branches/kdevelop/3.4/lib/widgets/processwidget.cpp #511488:511489
@@ -123,7 +123,7 @@
 
 void ProcessWidget::insertStdoutLine(const QString &line)
 {
-    insertItem(new ProcessListBoxItem(line.stripWhiteSpace(),
+    insertItem(new ProcessListBoxItem(line,
                                       ProcessListBoxItem::Normal));
     maybeScrollToBottom();
 }
@@ -131,7 +131,7 @@
 
 void ProcessWidget::insertStderrLine(const QString &line)
 {
-    insertItem(new ProcessListBoxItem(line.stripWhiteSpace(),
+    insertItem(new ProcessListBoxItem(line,
                                       ProcessListBoxItem::Error));
     maybeScrollToBottom();
 }
Comment 2 Matt Rogers 2006-02-20 05:25:10 UTC
SVN commit 511490 by mattr:

Don't strip whitespace when inserting.
CCBUG: 105376



 M  +2 -2      processwidget.cpp  


--- branches/KDE/3.5/kdevelop/lib/widgets/processwidget.cpp #511489:511490
@@ -123,7 +123,7 @@
 
 void ProcessWidget::insertStdoutLine(const QString &line)
 {
-    insertItem(new ProcessListBoxItem(line.stripWhiteSpace(),
+    insertItem(new ProcessListBoxItem(line,
                                       ProcessListBoxItem::Normal));
     maybeScrollToBottom();
 }
@@ -131,7 +131,7 @@
 
 void ProcessWidget::insertStderrLine(const QString &line)
 {
-    insertItem(new ProcessListBoxItem(line.stripWhiteSpace(),
+    insertItem(new ProcessListBoxItem(line,
                                       ProcessListBoxItem::Error));
     maybeScrollToBottom();
 }