@text.setter<EOL><INDENT>def text(self, newtext: str) -> None:<DEDENT>
string = self.string<EOL>if string[<NUM_LIT:0>] == '<STR_LIT:[>':<EOL><INDENT>text = self.text<EOL>if text:<EOL><INDENT>self[-len(text) - <NUM_LIT:1>:-<NUM_LIT:1>] = newtext<EOL>return<EOL><DEDENT>self.insert(-<NUM_LIT:1>, '<STR_LIT:U+0020>' + newtext)<EOL>return<EOL><DEDENT>self.insert(len(string), '<STR_LIT:U+0020>' + newtext + '<STR_LIT:]>')<EOL>self.insert(<NUM_LIT:0>, '<STR_LIT:[>')<EOL>
Set a new text.

        Automatically put the ExternalLink in brackets if it's not already.