Skip to content

Commit 0c2c412

Browse files
authored
Fixed the examples
1 parent 15bcd28 commit 0c2c412

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jinja/format-thousands.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@ Here's how to format a number in Jinja with commas for thousands, without needin
66

77
Output looks like this:
88

9-
179,119 rows
9+
179,119
1010

1111
Bonus: here's how to display a different pluralization of "row" if there is a single row:
1212

1313
{{ "{:,}".format(row_count) }} row{{ "" if row_count == 1 else "s" }}
1414

15+
Outputs:
16+
17+
179,119 rows

0 commit comments

Comments
 (0)