summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--lib/csv.rb10
2 files changed, 14 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 1a8e094dce..e5c702d967 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 4 12:21:45 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
+
+ * lib/csv.rb: added documentation for skip_blanks option by @decasia
+ [fix GH-744][ci skip]
+
Tue Nov 4 12:09:18 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
* lib/open3.rb: fix code formatting in documentation by @JoshCheek
diff --git a/lib/csv.rb b/lib/csv.rb
index c56f11bcf4..cc3e7f6362 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -1470,7 +1470,15 @@ class CSV
# if the data cannot be transcoded,
# leaving the header unchanged.
# <b><tt>:skip_blanks</tt></b>:: When set to a +true+ value, CSV will
- # skip over any rows with no content.
+ # skip over any empty rows. Note that
+ # this setting will not skip rows that
+ # contain column separators, even if
+ # the rows contain no actual data. If
+ # you want to skip rows that contain
+ # separators but no content, consider
+ # using <tt>:skip_lines</tt>, or
+ # inspecting fields.compact.empty? on
+ # each row.
# <b><tt>:force_quotes</tt></b>:: When set to a +true+ value, CSV will
# quote all CSV fields it creates.
# <b><tt>:skip_lines</tt></b>:: When set to an object responding to