有没有一种好方法可以统一缩进 m4 宏中的文本 block ?换句话说,宏
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
我希望有一种方法将整个文本 block 缩进到指定的数量。
最佳答案
怎么样patsubst :
patsubst(mytext,`^', ` ')
关于macros - 如何缩进 m4 宏中的文本 block ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29026753/