in reply to Re: Problem in generating ids through Arrayin thread Problem in generating ids through Array
I believe we are looking at an indentation level -> paragraph numbering algorithm, unless the OP states otherwise.