Revision: 2495
Author: janne.t.harkonen
Date: Mon Feb 22 04:42:16 2010
Log: whitespace
http://code.google.com/p/robotframework/source/detail?r=2495
Modified:
/trunk/src/robot/utils/text.py
=======================================
--- /trunk/src/robot/utils/text.py Sun Apr 19 13:26:54 2009
+++ /trunk/src/robot/utils/text.py Mon Feb 22 04:42:16 2010
@@ -24,7 +24,7 @@
def cut_long_message(msg):
if not is_str(msg):
- msg = unic(msg)
+ msg = unic(msg)
lines = msg.splitlines()
lengths = _count_line_lenghts(lines)
if sum(lengths) <= _MAX_ERROR_LINES:
@@ -59,7 +59,7 @@
else:
line = '...' + line[-available_chars:]
return line
-
+
def _count_line_lenghts(lines):
return [ _count_virtual_line_length(line) for line in lines ]
@@ -81,8 +81,8 @@
def wrap(text, width, indent=0):
"""Wraps given text so that it fits into given width with optional
indent.
-
- Preserves existing line breaks and most spaces in the text. Expects
that
+
+ Preserves existing line breaks and most spaces in the text. Expects
that
existing line breaks are posix newlines (\n).
Based on a recipe from ActiveState Python Cookbook at