(self, value, mark)
return text
Cleanup text values like titles or descriptions.
Cleanup text values like titles or descriptions.
Cleanup text values like titles or descriptions .
def cleanup_text(self, value, mark):
        "Cleanup text values like titles or descriptions."
        text = u" ".join(value.strip().split())
        if mark:
            text = u"%s %s" % (mark, text)
        return text
def cleanup_text ( self , value , mark ) : text = u" " . join ( value . strip ( ) . split ( ) ) if mark : text = u"%s %s" % ( mark , text ) return text