This pull does three things:
(1) abstracted the walkSection function so that it could be used by any section (which seems to have been written for that purpose to begin with)
(2) edited the parseCharges function by defining its walk function and then using the walkSection function referencing that walk function. This may not have been necessary, but it could allow for pulling the walk function out of the body of the parseCharges function.
(3) fixed a bug that was adding a new CASE NUMBER section whenever that phrase occurs (at the top of every page). Any section whose content cross over to a separate page was being lost due to the bug.
This pull does three things: (1) abstracted the walkSection function so that it could be used by any section (which seems to have been written for that purpose to begin with) (2) edited the parseCharges function by defining its walk function and then using the walkSection function referencing that walk function. This may not have been necessary, but it could allow for pulling the walk function out of the body of the parseCharges function. (3) fixed a bug that was adding a new CASE NUMBER section whenever that phrase occurs (at the top of every page). Any section whose content cross over to a separate page was being lost due to the bug.