Summary: | linefeeds with following space are not removed from mmb-pasted urls | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Leo Savernik <l.savernik> |
Component: | khtml | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Leo Savernik
2004-05-27 19:45:55 UTC
This isn't a wishlist item. The original feature (remove linefeeds from pasted urls) already works. This report is about a special circumstance in which linefeed removal fails. Maybe the wording in the summary is misleading. I'll change it to reflect the bug-like nature of this report. CVS commit by waba: Remove linefeeds and any whitespace surrounding it from pasted URLs (BR82325) CCMAIL: 82325-done@bugs.kde.org M +3 -0 browserextension.cpp 1.63 --- kdelibs/kparts/browserextension.cpp #1.62:1.63 @@ -25,4 +25,5 @@ #include <qobjectlist.h> #include <qmetaobject.h> +#include <qregexp.h> #include <qstrlist.h> #include <qstylesheet.h> @@ -430,4 +431,6 @@ void BrowserExtension::pasteRequest() QCString plain("plain"); QString url = QApplication::clipboard()->text(plain, QClipboard::Selection).stripWhiteSpace(); + // Remove linefeeds and any whitespace surrounding it. + url.replace(QRegExp("[\\ ]*\\n+[\\ ]*"),""); // Check if it's a URL |