Commit d54ffb1
committed
stats: new func ellipsize
Takes a string and an optional length and returns string of that length
with '...' in the middle. If no length is provided it defaults to the
good old 80 chars. If the string is shorter than target length the input
string is returned unchanged.
This, in conjunction with mpv-player#17021, is intended to eventually fix mpv-player#10975.1 parent 28ef6b7 commit d54ffb1
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
210 | 223 | | |
211 | 224 | | |
212 | 225 | | |
| |||
0 commit comments