mirror of
https://github.com/parsecsv/csv-spec.git
synced 2026-02-19 08:56:38 +00:00
See how it looks when specific terms are made bold
This commit is contained in:
17
README.md
17
README.md
@@ -57,7 +57,7 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
|
|
||||||
## CSV Format Definition
|
## CSV Format Definition
|
||||||
|
|
||||||
- The rules are mostly based on the corresponding section from
|
- These rules are mostly based on the corresponding section from
|
||||||
[RFC 4180][def], with minor changes, clarifications and improved examples.
|
[RFC 4180][def], with minor changes, clarifications and improved examples.
|
||||||
- Where relevant, examples include both the CSV text version and the
|
- Where relevant, examples include both the CSV text version and the
|
||||||
equivalent data in JSON format.
|
equivalent data in JSON format.
|
||||||
@@ -67,8 +67,8 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
|
|
||||||
### Rules
|
### Rules
|
||||||
|
|
||||||
1. Each record is located on a separate line, each line ending with CRLF
|
1. Each **record** is located on a separate line, each line ending with a
|
||||||
(`\r\n`). For example:
|
**line break** (CRLF or `\r\n`). For example:
|
||||||
|
|
||||||
CSV:
|
CSV:
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
```
|
```
|
||||||
|
|
||||||
2. Though recommended, the last record in a file is not required to have a
|
2. Though recommended, the last record in a file is not required to have a
|
||||||
ending line break. For example:
|
ending **line break**. For example:
|
||||||
|
|
||||||
CSV:
|
CSV:
|
||||||
|
|
||||||
@@ -101,10 +101,11 @@ character used in any given input CSV-like formatted file/data.
|
|||||||
["xxx", "yyy", "zzz"] ]
|
["xxx", "yyy", "zzz"] ]
|
||||||
```
|
```
|
||||||
|
|
||||||
3. There maybe an optional header line appearing as the first line of the
|
3. There maybe an optional **header** line appearing as the first line of the
|
||||||
file with the same format as normal record lines. This header will contain
|
file with the same format as normal **record** lines. This **header** will
|
||||||
names corresponding to the fields in the file and should contain the same
|
contain names corresponding to the **fields** in the file and should
|
||||||
number of fields as the records in the rest of the file. For example:
|
contain the same number of **fields** as the **records** in the rest of
|
||||||
|
the file. For example:
|
||||||
|
|
||||||
```csv
|
```csv
|
||||||
field_1,field_2,field_3¬
|
field_1,field_2,field_3¬
|
||||||
|
|||||||
Reference in New Issue
Block a user