Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv7528

Modified Files:
        util.py 
Log Message:
Added function to remove whitespaces and other yunk from the beginning
of a text. Usefull for cdata from xml files


Index: util.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** util.py     17 Mar 2003 19:04:10 -0000      1.16
--- util.py     20 Mar 2003 15:42:21 -0000      1.17
***************
*** 10,13 ****
--- 10,17 ----
  # -----------------------------------------------------------------------
  # $Log$
+ # Revision 1.17  2003/03/20 15:42:21  dischi
+ # Added function to remove whitespaces and other yunk from the beginning
+ # of a text. Usefull for cdata from xml files
+ #
  # Revision 1.16  2003/03/17 19:04:10  outlyer
  # Changed how we save bookmarks; the path is less important, but the filename
***************
*** 491,493 ****
--- 495,502 ----
      return myfile
  
+ 
+ def format_text(text):
+     while len(text) and text[0] in (' ', '\t', '\n'):
+         text = text[1:]
+     return text
  




-------------------------------------------------------
This SF.net email is sponsored by: Tablet PC.  
Does your code think in ink? You could win a Tablet PC. 
Get a free Tablet PC hat just for playing. What are you waiting for? 
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to