[ < ] [ > ]   [ << ] [ 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:


The result string will contain:

# two
# lines

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

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

This document was generated by Bruce Korb on August 21, 2015 using texi2html 1.82.