#2062: Screen.add_line.get_line_chunks() discards everything before first colour
string.
---------------------+------------------------------------------------------
Reporter: eirikba | Owner:
Type: patch | Status: new
Priority: minor | Milestone: Future
Component: other | Version: git 1.3-stable
Keywords: |
---------------------+------------------------------------------------------
Screen.add_line.get_line_chunks() (in deluge/ui/console/Screen.py) will
discard all the data before the first occurrence of '{!'.
Patch attached that fixes this issue, but also changes the chunking of
'{!1!}1{!2'. The old version would return [('{!1!}', '1'), ('{', '!2')].
The new version returns [('{!1!}', '1'), ('{!2', '')]. I'm not sure that
is correct, but I don't think it is worse :)
On the other hand, both the new and the old chunks '{!a!}a{!}other' to
[('{!a!}', 'a'), ('{!}', 'other')]. I don't know if that's correct
either.
--
Ticket URL: <http://dev.deluge-torrent.org/ticket/2062>
Deluge <http://deluge-torrent.org/>
Deluge project
--
You received this message because you are subscribed to the Google Groups
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-dev?hl=en.