equal
deleted
inserted
replaced
573 raise error.ParseError(_("rstdoc expects two arguments")) |
573 raise error.ParseError(_("rstdoc expects two arguments")) |
574 |
574 |
575 text = evalstring(context, mapping, args[0]) |
575 text = evalstring(context, mapping, args[0]) |
576 style = evalstring(context, mapping, args[1]) |
576 style = evalstring(context, mapping, args[1]) |
577 |
577 |
578 return minirst.format(text, style=style, keep=['verbose'])[0] |
578 return minirst.format(text, style=style, keep=['verbose']) |
579 |
579 |
580 @templatefunc('separate(sep, args...)', argspec='sep *args') |
580 @templatefunc('separate(sep, args...)', argspec='sep *args') |
581 def separate(context, mapping, args): |
581 def separate(context, mapping, args): |
582 """Add a separator between non-empty arguments.""" |
582 """Add a separator between non-empty arguments.""" |
583 if 'sep' not in args: |
583 if 'sep' not in args: |