diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-15 20:38:57 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-15 20:38:57 +0100 |
commit | f1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (patch) | |
tree | a1f2ab30332a6383b0677bfcc2aec687b98851d6 /src/photos/PhotoMetadata.vala | |
parent | f8ca421bdacee8851965a4b802ada1d2366bdbc1 (diff) | |
parent | ede50c561ec9811704821a9ea0f04c3d6c20b5af (diff) |
Merge branch 'release/0.26.4-1'0.26.4-1
Diffstat (limited to 'src/photos/PhotoMetadata.vala')
-rw-r--r-- | src/photos/PhotoMetadata.vala | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/photos/PhotoMetadata.vala b/src/photos/PhotoMetadata.vala index 7764415..e9a9042 100644 --- a/src/photos/PhotoMetadata.vala +++ b/src/photos/PhotoMetadata.vala @@ -970,8 +970,13 @@ public class PhotoMetadata : MediaMetadata { public void set_comment(string? comment, SetOption option = SetOption.ALL_DOMAINS) { + /* https://bugzilla.gnome.org/show_bug.cgi?id=781897 - Do not strip + * newlines from comments */ if (!is_string_empty(comment)) - set_all_string(COMMENT_TAGS, comment, option); + set_all_generic(COMMENT_TAGS, option, (tag) => { + set_string(tag, comment, PREPARE_STRING_OPTIONS & + ~PrepareInputTextOptions.STRIP_CRLF); + }); else remove_tags(COMMENT_TAGS); } |