1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Correct the jsonstringify documentation (#4344)

The jsonstringify substitution table does not list all substitutions, and it listed `'` as being replaced when it's not.  This updates the table based on the code at https://github.com/Jermolene/TiddlyWiki5/blob/master/core/modules/utils/utils.js#L537
This commit is contained in:
Matt Lauber 2019-10-24 05:02:20 -04:00 committed by Jeremy Ruston
parent e5985566ce
commit 9e9944b76d

View File

@ -15,10 +15,12 @@ The following substitutions are made:
|!Character |!Replacement | |!Character |!Replacement |
|`\` |`\\` | |`\` |`\\` |
|`"` |`\\` | |`"` |`\\"` |
|`'` |`\\` |
|`\r` (carriage return) |`\\r` | |`\r` (carriage return) |`\\r` |
|`\n` (line feed) |`\\n` | |`\n` (line feed) |`\\n` |
|`\x08` (backpsace) |`\\b` |
|`\x0c` (formfield) |`\\f` |
|`\t` (tab) |`\\t` |
|Characters from 0x00 to 0x1f |`\\x##` where ## is two hex digits | |Characters from 0x00 to 0x1f |`\\x##` where ## is two hex digits |
|Characters from 0x80 to 0xffff |`\\u####` where #### is four hex digits | |Characters from 0x80 to 0xffff |`\\u####` where #### is four hex digits |