[grisbi-cvs] [SCM] grisbi branch, grisbi-0.8.x, updated. upstream_version_0_8_9-8-g7077b4b

Pierre Biava nobody at users.sourceforge.net
Sun Jan 8 16:42:51 CET 2012


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, grisbi-0.8.x has been updated
       via  7077b4be2de0bca0e8577608cc4d67cdc443f36f (commit)
      from  d41caeab05bb36c5a7ee193237e19c4c9fe7c6fd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 7077b4be2de0bca0e8577608cc4d67cdc443f36f
Author: pbiava <pierre.biava at nerim.net>
Date:   Sun Jan 8 16:36:09 2012 +0100

    csv_parse.c: Fixed a bug when importing a CSV file with 'CR' characters

-----------------------------------------------------------------------

Changes:
diff --git a/src/csv_parse.c b/src/csv_parse.c
index fbda4a8..74e90ac 100644
--- a/src/csv_parse.c
+++ b/src/csv_parse.c
@@ -157,7 +157,7 @@ gchar * sanitize_field ( gchar * begin, gchar * end  )
     }
 
     /* Strip out remaining white spaces. */
-    while ( *(iter-1) == ' ' || *(iter-1) == '\n' )
+    while ( *(iter-1) == ' ' || *(iter-1) == '\r' || *(iter-1) == '\n' )
 	iter--;
 
     *iter = '\0';


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list