Download Fluency with Information Technology

Transcript
30
Chapter 2
What the Digerati Know
The Placeholder Technique
An easy strategy, called the Placeholder Technique, solves such problems. It begins by
substituting a placeholder character for the strings we want to keep, that is, the newline pairs. We pick # as the placeholder because it doesn’t appear anywhere else in the
document, but any unused character or character string will work. The substitution
expression is
↵↵ ←
#
Our text without the leading blanks and double new-lines now looks like this:
The new-lines that remain are the ones to be removed, so we need to replace them
with nothing
↵ ←
ε
The resulting text has no new-line characters left: