diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-09-01 22:08:12 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-09-02 10:49:35 +0200 |
commit | 82968362ead0ed59c64ee8a21fec346c9265a149 (patch) | |
tree | ce9143abf4469b619b37b36792faa7b3820ef4c8 /tests/import-git.scm | |
parent | ac9a7f6be9c2e0f2ab218f7a423527490bb6aa9c (diff) |
read-print: Define forms for which \n, \t, etc. are not escaped.
Previously, the pretty-printer would unconditionally leave everything
but double-quotes and backslashes unescaped when rendering a string.
With this change, the previous behavior only applies to forms listed in
%NATURAL-WHITESPACE-STRING-FORMS.
* guix/read-print.scm (%natural-whitespace-string-forms): New variable.
(printed-string): New procedure.
(pretty-print-with-comments): Use it instead of 'escaped-string'.
* tests/read-print.scm: Add test.
Diffstat (limited to 'tests/import-git.scm')
0 files changed, 0 insertions, 0 deletions