From 10d1b9bcfe12ef37f5fab5004aa4c986989fa693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Thu, 29 Apr 2021 03:17:49 +0200 Subject: [PATCH] CSV --- README.md | 16 ++++++++-------- index.html | 16 ++++++++-------- parse.js | 18 +++++++++--------- 3 files changed, 25 insertions(+), 25 deletions(-) diff --git a/README.md b/README.md index 435abc3..fa8c7cb 100644 --- a/README.md +++ b/README.md @@ -1799,15 +1799,15 @@ import csv ### Dialects ```text +------------------+--------------+--------------+--------------+ -| | excel | excel-tab | unix | +| | excel | excel-tab | unix | +------------------+--------------+--------------+--------------+ -| delimiter | ',' | '\t' | ',' | -| quotechar | '"' | '"' | '"' | -| doublequote | True | True | True | -| skipinitialspace | False | False | False | -| lineterminator | '\r\n' | '\r\n' | '\n' | -| quoting | 0 | 0 | 1 | -| escapechar | None | None | None | +| delimiter | ',' | '\t' | ',' | +| quotechar | '"' | '"' | '"' | +| doublequote | True | True | True | +| skipinitialspace | False | False | False | +| lineterminator | '\r\n' | '\r\n' | '\n' | +| quoting | 0 | 0 | 1 | +| escapechar | None | None | None | +------------------+--------------+--------------+--------------+ ``` diff --git a/index.html b/index.html index 5eb8498..1cfe517 100644 --- a/index.html +++ b/index.html @@ -1646,15 +1646,15 @@ CompletedProcess(args=['bc', 'quoting' - Controls the amount of quoting: 0 - as necessary, 1 - all.
  • 'escapechar' - Character for escaping 'quotechar' if 'doublequote' is False.
  • Dialects

    ┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓
    -┃                  │    excel     │   excel-tab  │     unix     ┃
    +┃                  │     excel    │   excel-tab  │     unix     ┃
     ┠──────────────────┼──────────────┼──────────────┼──────────────┨
    -┃ delimiter        │    ','       │    '\t'      │    ','       ┃
    -┃ quotechar        │    '"'       │    '"'       │    '"'       ┃
    -┃ doublequote      │    True      │    True      │    True      ┃
    -┃ skipinitialspace │    False     │    False     │    False     ┃
    -┃ lineterminator   │    '\r\n'    │    '\r\n'    │    '\n'      ┃
    -┃ quoting          │    0         │    0         │    1         ┃
    -┃ escapechar       │    None      │    None      │    None      ┃
    +┃ delimiter        │       ','    │      '\t'    │       ','    ┃
    +┃ quotechar        │       '"'    │       '"'    │       '"'    ┃
    +┃ doublequote      │      True    │      True    │      True    ┃
    +┃ skipinitialspace │     False    │     False    │     False    ┃
    +┃ lineterminator   │    '\r\n'    │    '\r\n'    │      '\n'    ┃
    +┃ quoting          │         0    │         0    │         1    ┃
    +┃ escapechar       │      None    │      None    │      None    ┃
     ┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛
     
    diff --git a/parse.js b/parse.js index 13b7c66..2d56bc6 100755 --- a/parse.js +++ b/parse.js @@ -228,20 +228,20 @@ const DIAGRAM_8_B = const DIAGRAM_9_A = '+------------------+--------------+--------------+--------------+\n' + - '| | excel | excel-tab | unix |\n' + + '| | excel | excel-tab | unix |\n' + '+------------------+--------------+--------------+--------------+\n'; const DIAGRAM_9_B = "┏━━━━━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┯━━━━━━━━━━━━━━┓\n" + - "┃ │ excel │ excel-tab │ unix ┃\n" + + "┃ │ excel │ excel-tab │ unix ┃\n" + "┠──────────────────┼──────────────┼──────────────┼──────────────┨\n" + - "┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" + - "┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" + - "┃ doublequote │ True │ True │ True ┃\n" + - "┃ skipinitialspace │ False │ False │ False ┃\n" + - "┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" + - "┃ quoting │ 0 │ 0 │ 1 ┃\n" + - "┃ escapechar │ None │ None │ None ┃\n" + + "┃ delimiter │ ',' │ '\\t' │ ',' ┃\n" + + "┃ quotechar │ '\"' │ '\"' │ '\"' ┃\n" + + "┃ doublequote │ True │ True │ True ┃\n" + + "┃ skipinitialspace │ False │ False │ False ┃\n" + + "┃ lineterminator │ '\\r\\n' │ '\\r\\n' │ '\\n' ┃\n" + + "┃ quoting │ 0 │ 0 │ 1 ┃\n" + + "┃ escapechar │ None │ None │ None ┃\n" + "┗━━━━━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┷━━━━━━━━━━━━━━┛\n"; const DIAGRAM_10_A =