Update richText.py

added allowEmpties option