[tomboy] DnD: Correct text/uri-list format
- From: Sanford Armstrong <sharm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tomboy] DnD: Correct text/uri-list format
- Date: Mon, 15 Mar 2010 15:29:18 +0000 (UTC)
commit c2b50bc0243198fdf55ae36b4870fd15e6653940
Author: Olivier Le Thanh Duong <olivier lethanh be>
Date: Fri Mar 5 01:39:14 2010 +0100
DnD: Correct text/uri-list format
The standard format for text/uri-list is to terminate item by "\r\n"
even for the last one or if there is only one.
cf : http://www.ietf.org/rfc/rfc2483.txt
https://bugzilla.gnome.org/show_bug.cgi?id=611858
Tomboy/RecentChanges.cs | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/Tomboy/RecentChanges.cs b/Tomboy/RecentChanges.cs
index c4df82e..cafe9cc 100644
--- a/Tomboy/RecentChanges.cs
+++ b/Tomboy/RecentChanges.cs
@@ -675,12 +675,8 @@ namespace Tomboy
string uris = string.Empty;
string paths = string.Empty;
foreach (Note note in selected_notes) {
- if (uris != string.Empty)
- uris += "\n";
- uris += note.Uri;
- if (paths != string.Empty)
- paths += "\n";
- paths += "file://" + note.FilePath;
+ uris += note.Uri + "\r\n";
+ paths += "file://" + note.FilePath + "\r\n";
}
if(args.Info == (uint) Target.Path)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]