generates text from original text and diffs stored in tuples, except for last bit