[gtranslator] Remove all empty lines at the end of the comments
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtranslator] Remove all empty lines at the end of the comments
- Date: Sat, 30 Jan 2010 19:01:08 +0000 (UTC)
commit efb66356c34e5c81b107ecb44c5e4327044d1249
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Sat Jan 30 20:00:45 2010 +0100
Remove all empty lines at the end of the comments
src/header.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/header.c b/src/header.c
index 96a0f00..0aee11a 100644
--- a/src/header.c
+++ b/src/header.c
@@ -624,11 +624,11 @@ update_comments (GtranslatorHeader *header,
g_string_append_printf (years, " %s.", current_year);
- /* If the last line is a \n just remove it */
- if (new_comments->str[new_comments->len - 1] == '\n')
+ /* Remove all empty lines at the end */
+ 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, "%s <%s>,%s",
+ g_string_append_printf (new_comments, "\n%s <%s>,%s",
translator, email, years->str);
g_string_free (years, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]