The node you are looking for is at Texinfo::Common trim_spaces_comment_from_content($contents).