Untrimmed Lines

A little while back, I was a little frustrated to discover that Inform 7’s line number <number> in <text> phrase automatically trimmed left and right whitespace. Regexps were the only means to get the original untrimmed line. So I wrote this extension that adds an untrimmed line number <number> in <text> phrase.

Untrimmed Lines by Zed Lopez


And it only just occurred to me that the default behavior provides an easy way to strip whitespace on purpose without resorting to a regexp.

To say strip (T - a text): say line number 1 in T.