You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by aj...@apache.org on 2003/12/11 23:07:35 UTC
cvs commit: jakarta-gump/python/gump/utils __init__.py
ajack 2003/12/11 14:07:35
Modified: python/gump/utils __init__.py
Log:
Cope w/ wrapping blank lines
Revision Changes Path
1.12 +3 -2 jakarta-gump/python/gump/utils/__init__.py
Index: __init__.py
===================================================================
RCS file: /home/cvs/jakarta-gump/python/gump/utils/__init__.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- __init__.py 11 Dec 2003 18:56:26 -0000 1.11
+++ __init__.py 11 Dec 2003 22:07:35 -0000 1.12
@@ -312,6 +312,8 @@
return s
def wrapLine(line,wrapLen=100, eol='\n', marker='[WRAPPED]'):
+
+ wrappedLine=''
#
# Provide some wrapping (at ~ 100)
#
@@ -319,8 +321,7 @@
startPosn=0
endPosn=wrapLen
increment=wrapLen
- totalLen=len(line)
- wrappedLine=''
+ totalLen=len(line)
while increment > 0:
wrappedLine+=line[startPosn:endPosn]
if totalLen - endPosn > wrapLen: