Ticket #2062 (closed patch: fixed)
Screen.add_line.get_line_chunks() discards everything before first colour string.
| Reported by: | eirikba | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.3.6 |
| Component: | console | Version: | 1.3-stable (git branch) |
| Keywords: | Cc: |
Description
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.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
