Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有一种在 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,`^', ` ')