<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def soft_break(self, el, text):
 """Apply soft break if needed."""


        if el.name == 'p' and el.namespace and el.namespace == self.namespaces["text"]:
            text.append('\n')