Support multiline replacment in Include Content
I have a need to include little snippets of text (or code actually) in my replacements.
Problem is that the macro doesn't seem to support the inclusion of control characters like \n for newline nor can handle that the new text covers several lines.
I don't need the expression that is to be replaced to cover several lines but would like to be able to use something like this:
/<expression>/Start of the textblock to replace with that continues on several lines but is still ending with the same end marker./
Even better would be if i could use a macro for the replacing text, for instance the Include Shared Block macro :-).
The usecase is for building graphs in PlantUML from template pieces using the rendered variant of that macro.
Comments (3)
-
reporter -
-
assigned issue to
It's a good suggestion. I've been hoping to carve out some time to look at this, but it will probably need to wait a while.
-
assigned issue to
-
- changed status to resolved
Sorry, I will not have time to implement this.
- Log in to comment
I have made some changes in a fork, but couldn't figure a simple way to make it backward compatible. So if a change to a format for substitution like this "text/new text// is acceptable then this is available to pull in.
By messing with some extra substring processing it could be fixed I'm sure.
Edit: Nope, that fix was not good enough. I'll go back to the drawing board.