I'm trying to get the eval macro to work with the content for a
paragraph.
If I set up a paragraph template, then do
[xxxx]
Test String
then in the conf file:
Eval Starts Next:
eval::['|']
eval::[re.sub(r'.','-','hello')]
eval::[re.sub(r'.','-','|')]
results in
Eval Starts Next:Test String-----
-
wheras what I want is
Eval Starts Next:Test String-----
----------
So, I know that it's possible to interpolate the | into the eval
statement as the first line shows. The regexp replacement also appears
to be doing the right thing. However, I can't get the last line to work,
where the pipe is being interpreted as a string literal.
I've tried a set of other options, including various incantations of
{sys}, and using {set:content:|}, but none of these seem to work for me.
Is there anyway to get this to work?
Phil
--
You received this message because you are subscribed to the Google Groups
"asciidoc" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/asciidoc?hl=en.