Skip to content

Commit

Permalink
improve one example due to faulty syntax highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
PgBiel committed May 6, 2024
1 parent bb6cf0d commit a60a26e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ Some examples:
```typ
#import "@preview/oxifmt:0.2.1": strfmt
#let s = strfmt("Left5 {:_<5}, Right6 {:*>6}, Center10 {centered: ^10?}, Left3 {tleft:_<3}", "xx", 539, tleft: "okay", centered: [a])
#assert.eq(s, "Left5 xx___, Right6 ***539, Center10 [a] , Left3 okay")
#let s = strfmt("Left5 {:_<5}, Right6 {:=>6}, Center10 {centered: ^10?}, Left3 {tleft:_<3}", "xx", 539, tleft: "okay", centered: [a])
#assert.eq(s, "Left5 xx___, Right6 ===539, Center10 [a] , Left3 okay")
// note how 'okay' didn't suffer any padding at all (it already had at least the desired total width).
```

Expand Down

0 comments on commit a60a26e

Please sign in to comment.