hevea 2.18

Also: add test, fix prefix.
Bit confused here; the above inreplace shows a straightforward variable assignment which means we can't pass the prefix in unless I'm missing something?