diff options
author | Ludovic Courtès <ludo@gnu.org> | 2022-08-02 15:29:55 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2022-08-08 11:22:32 +0200 |
commit | 077324a16fd6c7d2307bfa52a9863ca25cfc6a52 (patch) | |
tree | 507f6aeeaa99a99c0e5e68d6e307766897d05230 /tests/glob.scm | |
parent | f687e27e0385c7f9bab8d967293061158fc3f504 (diff) | |
download | guix-077324a16fd6c7d2307bfa52a9863ca25cfc6a52.tar.gz guix-077324a16fd6c7d2307bfa52a9863ca25cfc6a52.zip |
read-print: Recognize page breaks.
* guix/read-print.scm (<page-break>, page-break?, page-break)
(char-set:whitespace-sans-page-break): New variables.
(space?): New procedure.
(read-vertical-space): Use it.
(read-until-end-of-line): New procedure.
(read-with-comments): Add #\page case.
(pretty-print-with-comments): Add 'page-break?' case.
* tests/read-print.scm ("read-with-comments: top-level page break"): New
test.
Add round-trip test with page break within an sexp.
Diffstat (limited to 'tests/glob.scm')
0 files changed, 0 insertions, 0 deletions