<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_value(self, text):
 """Sets the text content. Args: text (str):
 The string content that have to be appended as standard child identified by the key 'text' """

        if self.single_line:
            text = text.replace('\n', '')
        self.set_text(text)