An example of handling multiline output from git.
An example of handling multiline output from git.

This solution doesn't assume:

- That every field is a single line
- That there is only one field with spaces
- Anything else about the input format, other than it doesn't contain
  0x01 and 0x02 bytes.  (The encoding should therefore be ASCII/utf-8.)

It also has the nice property that you can change your format string
arbitrarily while not worrying about the escaping function.  I don't
want to rewrite the escaping function every time I change the format
string.  Solutions that require that are fragile.

oilshell/blog-code,oilshell/blog-code,oilshell/blog-code,oilshell/blog-code,oilshell/blog-code,oilshell/blog-code,oilshell/blog-code