From c3347d556ea8caf355c17a169070a4c052f266de Mon Sep 17 00:00:00 2001 From: kergoth Date: Sun, 26 Jan 2003 04:34:14 +0000 Subject: Strip newlines from the fortune. --- (limited to 'noncore/todayplugins') diff --git a/noncore/todayplugins/fortune/fortunepluginwidget.cpp b/noncore/todayplugins/fortune/fortunepluginwidget.cpp index 583bf0b..b210fa9 100644 --- a/noncore/todayplugins/fortune/fortunepluginwidget.cpp +++ b/noncore/todayplugins/fortune/fortunepluginwidget.cpp @@ -78,6 +78,7 @@ void FortunePluginWidget::getFortune() { void FortunePluginWidget::slotStdOut( OProcess* proc, char* buf, int len ) { - QCString cstring( buf, len ); - fortune->setText( cstring ); + QCString s( buf, len ); + s.replace( QRegExp("\n"), "" ); + fortune->setText( s ); } -- cgit v0.9.0.2