mirror of
https://github.com/evennia/evennia.git
synced 2026-03-30 20:47:17 +02:00
Whoops, overcorrected some of that for split().
This commit is contained in:
parent
d4e98a80f9
commit
6a7e329a39
1 changed files with 2 additions and 2 deletions
|
|
@ -772,7 +772,7 @@ class ANSIString(unicode):
|
|||
if next < 0:
|
||||
break
|
||||
# Get character codes after the index as well.
|
||||
res.append(self[start:next])
|
||||
res.append(self[start:next] + self._get_interleving(next))
|
||||
start = next + bylen
|
||||
maxsplit -= 1 # NB. if it's already < 0, it stays < 0
|
||||
|
||||
|
|
@ -798,7 +798,7 @@ class ANSIString(unicode):
|
|||
if next < 0:
|
||||
break
|
||||
# Get character codes after the index as well.
|
||||
res.append(self[next+bylen:end])
|
||||
res.append(self[next+bylen:end] + self._get_interleving(end))
|
||||
end = next
|
||||
maxsplit -= 1 # NB. if it's already < 0, it stays < 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue