2

Is there a good way to uniformly indent a block of text in an m4 macro? In other words, the macro

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

generates

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

I'd like to have a way to indent the whole block of text to a specified amount.

wyer33
  • 6,060
  • 4
  • 23
  • 53

1 Answers1

2

How about patsubst:

patsubst(mytext,`^', ` ')
lossleader
  • 13,182
  • 2
  • 31
  • 45