Implement Ibis.formatting_parse
Review Request #3940 — Created March 29, 2025 and submitted
This will parse IRC formating into a Pango.AttrList per the rules defined in https://modern.ircdocs.horse/formatting.
Ran the tests under valgrind and called in the turtles.
Summary | ID |
---|---|
242cff706288cdfd6ad76d11861defb7853508bd |
Description | From | Last Updated | ||
---|---|---|---|---|
I think this should be of size 3, to have space for terminating 0 character in case of length is … |
![]() |
|||
I'm confused. Shouldn't this start the attribute here? |
![]() |
|||
You only appear to have 0-98 in the palette, but buffer could be 99, which would read out-of-bounds. |
|
|||
Why is this unsetting the background? The spec says: If only the foreground color is set, the background color stays … |
|
|||
Similar here, since it follows the same rules. |
|
|||
This is already handled in ibis_formatting_parse, so can be dropped. |
|
|||
I don't quite understand this comment; what is "all color"? Anyway, background is reset if neither fg nor bg are … |
|
|||
There are no open issues |
- Change Summary:
-
address issues
- Commits:
-
Summary ID be1b7f53b58eccd11d519535e770ae3782d9370a b0a54fb3c13e41e87f1141cf57fba992bb1ddc51
-
-
You only appear to have 0-98 in the palette, but
buffer
could be 99, which would read out-of-bounds. -
Why is this unsetting the background? The spec says:
If only the foreground color is set, the background color stays the same.
It should only be reset if neither foreground nor background are specified.
-
-
- Change Summary:
-
Address issues.
Note that since this was already landed another commit was landed after it that the incremental changes show more than they should. If you look at the entire diff, it'll just show the changes in this update as that's how they were created on my side.
- Commits:
-
Summary ID b0a54fb3c13e41e87f1141cf57fba992bb1ddc51 b80bda4c6b526dca18397c5237cc082b17b01ab0
- Change Summary:
-
Reword the comment.
- Commits:
-
Summary ID b80bda4c6b526dca18397c5237cc082b17b01ab0 adbbce1f315de5a018d84324ac73590d5d295783