I'm looking for a good term for removing line-breaks from a piece of text and replacing them with a special line-break marker. (Like how, when quoting poetry, we use "/" to represent a break; though my case is in a software context, the goal being amenability to line-oriented tools like grep
.)
Since various RFCs use the term "linear white space" (LWSP) to refer to within-line whitespace (namely tabs and spaces), I'm considering the term "linearize"; but I'm afraid that it might be too opaque, since there are so many other kinds of linearization. I want to use this term as the name of a function/method/procedure/subroutine that performs this transformation, so it should ideally stand on its own and convey at least a rough idea of what the transformation is.
reformat(msg)
would mean . . . :-/makeGrepFriendly()
.