Hey Perry,
It looks like RDoc is doing some extra pre/post processing on the
files that it's hiding from its markup processor. That may include
forcibly gsubbing tabs by spaces before marking up HTML. YARD is
doing nothing other than calling out to RDoc::Markup to get the
generated HTML. A bare reproduction that you can run on any Ruby 2.x
install is attached to this email. You can see it on
repl.it here:
https://repl.it/B9q0
If RDoc really is just replacing the tabs, it's something YARD could
do, but I'm not sure it's something we'd want to, since that could
be confusing for other reasons.
Loren