tisp

tiny lisp
git clone git://edryd.org/tisp
Log | Files | Refs | README | LICENSE

commit 2d69d84fab6e6af07b8150e9e9c08f2a9bf3c0d7
parent e318f0a147dd1b0459e785ed6794ffd220e4d1f9
Author: Ed van Bruggen <ed@edryd.org>
Date:   Thu, 23 Nov 2023 15:19:57 -0500

Escape newline character to space

Allow splitting of long strings over multiple lines without adding newline
characters

Diffstat:
Mtisp.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tisp.c b/tisp.c @@ -464,10 +464,10 @@ esc_char(char c) switch (c) { case 'n': return '\n'; case 't': return '\t'; + case '\n': return ' '; case '\\': case '"': - default: - return c; + default: return c; } }