"Fossies" - the Fresh Open Source Software Archive

Member "Tahchee-1.0.0/Sources/tahchee/plugins/_kiwi/formatting.py" (22 Oct 2009, 233 Bytes) of package /linux/privat/old/tahchee-1.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. For more information about "formatting.py" see the Fossies "Dox" file reference documentation.

    1 
    2 def Upper( text ):
    3     return " ".join([w[0].upper() + w[1:].lower() for w in text.split()])
    4 
    5 def escapeHTML( text ):
    6     text = text.replace("&", "&")
    7     text = text.replace(">", ">")
    8     text = text.replace("<", "&lt;")
    9     return text
   10