I tried textnode.getsubelements, then revise the sub text elements, it works indeed.
But there is a problem still. For example, I revised justification of each sub text element, after sub text.rewrite, it revised. After all sub text elements are revised, the justification of the text node is not revised yet, if do textnode.rewrite, the text node is back again.
But there is a problem still. For example, I revised justification of each sub text element, after sub text.rewrite, it revised. After all sub text elements are revised, the justification of the text node is not revised yet, if do textnode.rewrite, the text node is back again.