[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.5.26 ‘prefix’ - prefix lines with a string

Usage: (prefix prefix text)
Prefix every line in the second string with the first string. This includes empty lines, though trailing white space will be removed if the line consists only of the "prefix". Also, if the last character is a newline, then *two* prefixes will be inserted into the result text.

For example, if the first string is "# " and the second contains:

 
"two\nlines\n"

The result string will contain:

 
# two
# lines
#

The last line will be incomplete: no newline and no space after the hash character, either.

Arguments:
prefix - string to insert at start of each line
text - multi-line block of text


This document was generated by Bruce Korb on August 30, 2014 using texi2html 1.82.