pages: some rewording and line-wrapping - www.codemadness.org - www.codemadness.org saait content files (HTM) git clone git://git.codemadness.org/www.codemadness.org (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit da6d8a8db214512fff9a81786cdbb93fb5545378 (DIR) parent 325471b5009acf5400dcc949e864a4e9d8582c93 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Mon, 24 May 2021 14:58:41 +0200 pages: some rewording and line-wrapping Diffstat: M pages/hurl.md | 3 ++- M pages/json2tsv.md | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) --- (DIR) diff --git a/pages/hurl.md b/pages/hurl.md @@ -92,7 +92,8 @@ User-Agent: HTTP Basic Auth (base64-encoded username:password): - hurl -H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' 'https://codemadness.org/atom.xml' + hurl -H 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ + 'https://codemadness.org/atom.xml' GZIP (this assumes the served response Content-Type is gzip): (DIR) diff --git a/pages/json2tsv.md b/pages/json2tsv.md @@ -83,11 +83,12 @@ For the parser, there are many JSON parsers out there, like the efficient tokens. * jsmn does not handle decoding strings by default. Which is very efficient if you don't need parts of the data though. -* jsmn does not keep context of nested structures by default, so again requires +* jsmn does not keep context of nested structures by default, so may require writing custom utility functions for nested data. -I went for a parser design that uses a single callback per "node" type and -keeps track of the current nested structure in a single array and emits that. +This is why I went for a parser design that uses a single callback per "node" +type and keeps track of the current nested structure in a single array and +emits that. ## Clone