Skip to content

Commit 5e60966

Browse files
committed
Use 4 spaces indentation in examples
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1610770 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8fdcb3d commit 5e60966

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/site/xdoc/user-guide.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ limitations under the License.
2727
<source>Reader in = new FileReader(&quot;path/to/file.csv&quot;);
2828
Iterable&lt;CSVRecord&gt; records = CSVFormat.EXCEL.parse(in);
2929
for (CSVRecord record : records) {
30-
String lastName = record.get("Last Name");
31-
String firstName = record.get("First Name");
30+
String lastName = record.get("Last Name");
31+
String firstName = record.get("First Name");
3232
}</source>
3333
</section>
3434
<section name="Handling Byte Order Marks">
@@ -42,13 +42,13 @@ for (CSVRecord record : records) {
4242
final Reader reader = new InputStreamReader(new BOMInputStream(url.openStream()), "UTF-8");
4343
final CSVParser parser = new CSVParser(reader, CSVFormat.EXCEL.withHeader());
4444
try {
45-
for (final CSVRecord record : parser) {
46-
final String string = record.get("SomeColumn");
47-
...
48-
}
45+
for (final CSVRecord record : parser) {
46+
final String string = record.get("SomeColumn");
47+
...
48+
}
4949
} finally {
50-
parser.close();
51-
reader.close();
50+
parser.close();
51+
reader.close();
5252
}</source>
5353
</section>
5454
<!-- ================================================== -->

0 commit comments

Comments
 (0)