如何在 m4 宏中缩进一段文本

How to indent a block of text in an m4 macro

有没有什么好的方法可以统一缩进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

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

怎么样patsubst:

patsubst(mytext,`^', ` ')