@@ -16,7 +16,7 @@ All code snippets on this page assume that the following has been executed:
1616 - {Generating to a File}[#label-Generating+to+a+File]
1717 - {Recipe: Generate to File with Headers}[#label-Recipe-3A+Generate+to+File+with+Headers]
1818 - {Recipe: Generate to File Without Headers}[#label-Recipe-3A+Generate+to+File+Without+Headers]
19- - {Generating to IO an Stream}[#label-Generating+to+an+IO+Stream]
19+ - {Generating to an IO Stream}[#label-Generating+to+an+IO+Stream]
2020 - {Recipe: Generate to IO Stream with Headers}[#label-Recipe-3A+Generate+to+IO+Stream+with+Headers]
2121 - {Recipe: Generate to IO Stream Without Headers}[#label-Recipe-3A+Generate+to+IO+Stream+Without+Headers]
2222- {Converting Fields}[#label-Converting+Fields]
@@ -71,11 +71,11 @@ that are to be generated:
7171
7272==== Generating to a \File
7373
74- You can generate / CSV data to a \File, with or without headers.
74+ You can generate \ CSV data to a \File, with or without headers.
7575
7676===== Recipe: Generate to \File with Headers
7777
78- Use class method CSV.open with option +headers+ generate to a \File.
78+ Use class method CSV.open with option +headers+ to generate to a \File.
7979
8080This example uses method CSV#<< to append the rows
8181that are to be generated:
@@ -105,7 +105,7 @@ that are to be generated:
105105
106106You can generate \CSV data to an \IO stream, with or without headers.
107107
108- ==== Recipe: Generate to \IO Stream with Headers
108+ ===== Recipe: Generate to \IO Stream with Headers
109109
110110Use class method CSV.new with option +headers+ to generate \CSV data to an \IO stream:
111111 path = 't.csv'
@@ -187,7 +187,7 @@ For strict compliance, use option +:row_sep+ to specify row separator <tt>"\r\n"
187187===== Recipe: Generate Non-Compliant Row Separator
188188
189189For data with non-compliant row separators, use option +:row_sep+ with a different value:
190- This example source uses semicolon (<tt>";' </tt>) as its row separator:
190+ This example source uses semicolon (<tt>";" </tt>) as its row separator:
191191 output_string = CSV.generate('', row_sep: ";") do |csv|
192192 csv << ['Foo', 0]
193193 csv << ['Bar', 1]
@@ -223,11 +223,11 @@ This example source uses TAB (<tt>"\t"</tt>) as its column separator:
223223
224224==== Quotes
225225
226- IFC 4180 allows most fields to be quoted or not.
226+ RFC 4180 allows most fields to be quoted or not.
227227By default, \CSV does not quote most fields.
228228
229229However, a field containing the current row separator, column separator,
230- or quote character is automatically quoted, producing IFC 4180 compliance:
230+ or quote character is automatically quoted, producing RFC 4180 compliance:
231231 # Field contains row separator.
232232 output_string = CSV.generate('') do |csv|
233233 row_sep = csv.row_sep
0 commit comments