(IND 5.0, Actionscript)
I need to be able to add a linefeed ("\n") to the very end of a TextFrame's contents, which may include any combination of tagged and untagged texts, and tagged and untagged image frames.
There seems to be an endless variation of circumstances, each of which require a specific solution.
In short, is there some catch-all solution for adding a "\n" at the very end of a TextFrame's contents, without the Tags on the Text being removed and without causing a failure due to trying to add "\n" to an Image's contents?
2) I think this questioni has "harbs." written all over it...
Harbs is crazy busy right now, and I don't really understand your issue.
Why do you need to add a linefeed? Do you mean a paragraph return or soft return?
Something like this might be what you are after:
textFrame.insertionPoints.item(-1).contents = "\r";
textFrame.insertionPoints.item(-1).contents = SpecialCharacters.FORCED_LINE_BREAK;