\textrule{TEXT} puts a rule with the TEXT to the left, like so:
--TEXT——————————————[endofline]

I imagined that \textrule[location=..] could be used to vary the position of TEXT to middle or to the right (as I would like to have it). But I could not get this working, the only effect of for example \textrule[location=left] is to insert a blank line after the rule. I am missing something or isn’t this possible?

Hans van der Meer