2

有没有一种在 m4 宏中统一缩进文本块的好方法?换句话说,宏

define(`mytext',dnl
This is
a
piece of text
that I would like
to indent)
mytext

生成

This is
a
piece of text
that I would like
to indent

我想有一种方法可以将整个文本块缩进到指定的数量。

4

1 回答 1

2

patsubst怎么样:

patsubst(mytext,`^', ` ')
于 2015-03-18T20:20:05.790 回答