Correctly handle trailing code/macros when calling expandParagraph when reversed