chiark / gitweb /
zone.lisp: Split a single `:txt' string into small enough pieces.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 3 May 2024 00:14:43 +0000 (01:14 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 4 May 2024 23:56:24 +0000 (00:56 +0100)
commit48c0bf44ad8cdbaf60811f03e08d14caef1964be
treed5356ed4bedd11152172ccf2b8e8b48423a44345
parent63b00b21ca8bd03fa839195a760243e588ac94cc
zone.lisp: Split a single `:txt' string into small enough pieces.

The substrings of a `:txt' record can be at most 255 bytes long.  If the
argument is a single string that's too long then split it into pieces;
prefer to split at semicolons, or spaces.

If the argument is a list of strings, then respect their split.
Theoretically, the split positions are semantically transparent, but
it's possible that some programs are sensitive to the boundaries.
zone.lisp