Hey Johnathan …
Thanks for the post on the code. I've started working on a new release and have integrated this into that.
Fwiw, your code wasn't a hack at all. Without an extensive amount of testing so far, your code works well. I've integrated your findSpanLength into the NotesView2 object instead of letting it float out on its own, and the only bug i've identified so far is that for columns that have multiple categories with in a single column (ie the categorized column's formula is [ Value1 + "\" + Value2 ]) the indent was insufficient to distinguish the subcategory from the parent category. Restoring the line:
if(entry.indent)td.style.paddingLeft = (parseInt(entry.indent) * 1) + "px";
to
if(entry.indent)td.style.paddingLeft = (parseInt(entry.indent) * 15) + "px";
resolves the issue. (I think it was either an accidental deletion, or you were trying to prevent the column total from being padding 15px, however that line is never called for the total column b/c of the twistieSwitch var, so no worries.
Thanks again.