w3c / csvw

Documents produced by the CSV on the Web Working Group
Other
161 stars 57 forks source link

Is 'trim' true or false by default? #867

Open alexshpilkin opened 5 years ago

alexshpilkin commented 5 years ago

The trim property and flag are specified to be true by default, while the default dialect in §5.9 sets the property to false. Which is the authoritative one?

gkellogg commented 5 years ago

The default is true. That’s what the 5.9 description said when I followed your reference (which is to the ED, not the REC).

alexshpilkin commented 5 years ago

Well, yes, I supposes that bugs are to be filed against the latest version, which as far as I understand the ED. But I may have understood the process wrong.

I was referring to the “default dialect description” in §5.9, it just doesn’t have an anchor:

{
  "encoding": "utf-8",
  "lineTerminators": ["\r\n", "\n"],
  "quoteChar": "\"",
  "doubleQuote": true,
  "skipRows": 0,
  "commentPrefix": "#",
  "header": true,
  "headerRowCount": 1,
  "delimiter": ",",
  "skipColumns": 0,
  "skipBlankRows": false,
  "skipInitialSpace": false,
  "trim": false
}

Note the last object member.

RickMoynihan commented 2 years ago

Yes it looks like the "default dialect description" is wrong and needs updated in accordance with what is stated in the definition list above.