Repository navigation
Improve repr for SequenceElem - #3584
Conversation
|
I have some reservations about the I think the original is fine, or the alternative one i.e. |
I have to disagree on this specific point. The reason why I made this PR in the first place is because I saw the current repr while debugging a Typst template, and I was unable to determine what this was representing. I had to look at different I'm fine with using the join syntax ( |
|
The original is indeed a bit confusing, in the sense that it seems to try to mimic markup and code mode at the same time. Perhaps a better (and more accurate) representation is |
|
I think this is how it used to be a while ago. I wanted to make it valid Typst here. Maybe |
|
The current one is indeed pretty weird, don't know where that came from. I'm not a big fan of the one with addition. From the ones in the PR description, I like the code block one best, but |
|
There is a conflict now. There's also a problem with the checks apparently, but I think that would be fixed just by merging main into this PR. |
|
I'm working on the conflict. |
|
All good now! |
|
Thanks! |
This small PR changes the
reprfor sequences so that it it valid Typst code and less confusing.For comparison, the old
reprlooked like the following:And here is the new one:
Another solution was to use the join syntax:
but I think the
+syntax is more explicit.