]> git.wincent.com - docvim.git/commit
Try to make `toc` more readable
authorGreg Hurrell <greg@hurrell.net>
Thu, 9 Jun 2016 14:11:59 +0000 (07:11 -0700)
committerGreg Hurrell <greg@hurrell.net>
Thu, 9 Jun 2016 14:11:59 +0000 (07:11 -0700)
commit20cff8da980c7d40afa74f38bda296cceef1d2bf
tree889caf56677715fbd648d28820176d681f07d3eb
parentd22be14789314bcbb64d7d2c12f834d3ddee07a3
Try to make `toc` more readable

Instead of threading the `suffix` through multiple layers of function calls,
create a new scope with an inner function `toc'` that we can use to have
implicit access to it instead.

I think this might be more readable, although it is still somewhat of a hot
mess.
lib/Docvim/Printer/Vim.hs