djc / askama

Type-safe, compiled Jinja-like templates for Rust
Apache License 2.0
3.25k stars 213 forks source link

filter: let `|truncate` only write '…' if needed #1062

Closed Kijewski closed 1 month ago

Kijewski commented 1 month ago

The filter takes care not to split characters. If all data was printed, then '…' should not be printed.

Kijewski commented 1 month ago

@djc, I guess it's up to you to say if you want to allow Unicode-3.0. :) Looks like MIT to me.

djc commented 1 month ago

@djc, I guess it's up to you to say if you want to allow Unicode-3.0. :) Looks like MIT to me.

Not sure what do you mean by this?

djc commented 1 month ago

Ah, the audit failure. Yeah, the idna crate update is a bit of a trashfire.