Commit d7a229a
committed
Improve readability of mathtext internal structures.
This changes the repr of mathtext lists from e.g.
```
[Hlist <70.39 41.78 0.00 0.00> [Hlist <0.00 0.00 0.00 0.00> ] [Hlist <37.62 40.09 0.00 0.00> `V` k1.11] [Hlist <32.76 41.78 0.00 0.00> ` ` `l` k10.34]]
```
to
```
Hlist<w=70.39 h=41.78 d=0.00 s=0.00>[Hlist<w=0.00 h=0.00 d=0.00 s=0.00>[], Hlist<w=37.62 h=40.09 d=0.00 s=0.00>[`V`, k1.11], Hlist<w=32.76 h=41.78 d=0.00 s=0.00>[` `, `l`, k10.34]]
```
These are internal structures that should only ever be seen when
debugging mathtext layout and can be quite deeply nested, so a somewhat
concise notation should is good (e.g., backticks for Chars, k for
Kerns), but still...
- indicate what each of the four numbers correspond to
(width/height/descent shift),
- move the brackets *after* the class name and metrics, which makes it
clearer what is info about the list instance itself and what are the
contents of the instance (in particular, the empty hlist at the
beginning is now clearer),
- separate list items with commas.1 parent 0d0799b commit d7a229a
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1236 | 1236 | | |
1237 | 1237 | | |
1238 | 1238 | | |
1239 | | - | |
| 1239 | + | |
1240 | 1240 | | |
1241 | 1241 | | |
1242 | 1242 | | |
1243 | | - | |
| 1243 | + | |
1244 | 1244 | | |
1245 | 1245 | | |
1246 | 1246 | | |
| |||
0 commit comments