[gtranslator] Added extra \n at the end of the comments. Fixes bug #606303.



commit eeb9576a13a53444914658150ea7313af6a3b5ae
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Apr 14 16:28:36 2010 +0200

    Added extra \n at the end of the comments. Fixes bug #606303.

 src/gtr-header.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/gtr-header.c b/src/gtr-header.c
index 9692e5c..d8f71a5 100644
--- a/src/gtr-header.c
+++ b/src/gtr-header.c
@@ -667,7 +667,8 @@ update_comments (GtrHeader *header, const gchar *comments)
   while (new_comments->str[new_comments->len - 1] == '\n')
     new_comments = g_string_truncate (new_comments, new_comments->len - 1);
 
-  g_string_append_printf (new_comments, "\n%s <%s>,%s",
+  /* Add \n\n for an extra newline at the end of the comments */
+  g_string_append_printf (new_comments, "\n%s <%s>,%s\n\n",
                           translator, email, years->str);
 
   g_string_free (years, TRUE);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]