Whitespace

This commit is contained in:
Maximilian Merz 2018-03-31 18:07:17 +02:00
parent 26c2e1f862
commit 1df0689e26

View file

@ -700,6 +700,7 @@ def split_into_lines(string, raw_string, width_tuple):
result = { 'col': [], 'raw': [] }
next_substr_raw = u''
next_substr = u''
# Iterate over all words.
for i in range(len(words_raw)):
if i == 0:
@ -709,8 +710,6 @@ def split_into_lines(string, raw_string, width_tuple):
pot_substr_raw = ' '.join([next_substr_raw, words_raw[i]])
pot_substr = ' '.join([next_substr, words[i]])
#print_('pot_substr_raw: {}'.format(pot_substr_raw))
# Find out if the pot(ential)_substr fits into the next substring.
fits_first = \
(len(result['raw']) == 0 and len(pot_substr_raw) <= first_width)