def fmt_whitespace(value):
 value = WHITESPACE_RE.sub(u'<span class="hlspace">\\1</span>', value)
 value = value.replace(u' DCTB ', SPACE_TAB.format(_(u'Tab character')))
 return value

def fmt_whitespace ( value ) : value = WHITESPACE_RE . sub ( u'<span class="hlspace">\\1</span>' , value ) value = value . replace ( u' DCTB ' , SPACE_TAB . format ( _ ( u'Tab character' ) ) ) return value
formats whitespace so that it is more visible .