domsson / succade

Run, feed and style your Lemonbar with ease
Creative Commons Zero v1.0 Universal
55 stars 3 forks source link

Escape % automatically, instead of having to double it in block output #1

Closed domsson closed 6 years ago

domsson commented 6 years ago

Lemonbar's format strings start with %, therefore we need to escape this character if we want to print a literal % by doubling it: %%. Currently, blocks have to make sure to do this escaping by outputting two percent signs if they want to print one. This, however, is inconvenient and messes with the padding option.

Instead, succade should take care of the escaping and account for it when applying padding.

domsson commented 6 years ago

Implemented with commit 5117667