Summary: | Konqueror Archive Web Page tool no longer automatically converts spaces to underscores | ||
---|---|---|---|
Product: | [Applications] konqueror | Reporter: | Shriramana Sharma <samjnaa> |
Component: | general | Assignee: | Konqueror Developers <konq-bugs> |
Status: | RESOLVED WORKSFORME | ||
Severity: | minor | CC: | tyrerj, zahl |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | patch for revert and correction of a logical error |
Description
Shriramana Sharma
2006-06-13 11:04:50 UTC
I am confirming this and I think that it is a bug although I have rated it as only a minor one. The change was at line 85 of /branches/KDE/3.5/kdeaddons/konq-plugins/webarchiver/plugin_webarchiver.cpp archiveName = archiveName.replace( QRegExp("\\s+"), "_"); was changed to archiveName = archiveName.replace( QRegExp("\\s+"), " "); Look at http://websvn.kde.org/branches/KDE/3.5/kdeaddons/konq-plugins/webarchiver/plugin_webarchiver.cpp?rev=541035&view=log The committer has written, "this isn't DOS". But it isn't Windows either. KDE has so far been on *nix systems. Only after now it will be ported to Windows. As such, the use of the space should be discouraged. For your (future) Windows users, give them the space as a settable option, or maybe even as the default. For us *nix users, give us the underscore. Something like: #if WORKINGINWINDOWS archiveName = archiveName.replace( QRegExp("\\s+"), " "); #else archiveName = archiveName.replace( QRegExp("\\s+"), "_"); #endif A slightly more complicated solution would be to add a checkbox to the dialog where the user can select whether s/he wants auto-conversion of spaces or not. P.S: The person who undid this behaviour overlooked a couple of things: 1. He did not remove the following comment: // Replace space with underscore, proposed Frank Pieczynski <pieczy@knuut.de> 2. He did not notice that the following line exists: archiveName = archiveName.simplifyWhiteSpace(); thereby rendering his line totally superfluous. He should simply have deleted the line. Attaching a patch for corrections. Created attachment 16701 [details]
patch for revert and correction of a logical error
Please revert Revision 541035 ! It changes also only 3.5 line, in HEAD it's still ok (converting spaces to '_'). This conversion is a feature, not a bug. Resolved in 3.5.9. It does underscores in 4.00.84 |