`wezterm.pad_righ` in the example should be `wezterm.pad_right`. There's another problem, shared with the pad_left page, that `"o "` is rendered in the HTML with just one space, collapsing the two spaces to one, which is very misleading given what the example for this function does. It needs to be in a `<pre>` tag rather than just a `<code>` tag, but I don't know how to fix that from markdown.
439 B
439 B
wezterm.pad_right(string, min_width)
Since: 20210502-130208-bff6815d
Returns a copy of string that is at least min_width columns
(as measured by wezterm.column_width).
If the string is shorter than min_width, spaces are added to
the right end of the string.
For example, wezterm.pad_right("o", 3) returns "o ".
See also: wezterm.truncate_left, wezterm.pad_left.