1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +00:00

Renamed to rstrip to allow for future lstrip or even strip (rstrip+lstrip) command

This commit is contained in:
AlexApps99 2020-01-23 10:39:19 +13:00 committed by Brenden Matthews
parent b8d3515f19
commit 8dc04f3902
2 changed files with 3 additions and 3 deletions

View File

@ -3873,11 +3873,11 @@
<varlistentry>
<term>
<command>
<option>strip</option>
<option>rstrip</option>
</command>
<option>text</option>
</term>
<listitem>Strips all whitespace from ends of input.
<listitem>Strips all trailing whitespace from input.
<para /></listitem>
</varlistentry>
<varlistentry>

View File

@ -895,7 +895,7 @@ struct text_object *construct_text_object(char *s, const char *arg, long line,
END OBJ(uppercase, 0) obj->data.s = STRNDUP_ARG;
obj->callbacks.print = &print_uppercase;
obj->callbacks.free = &gen_free_opaque;
END OBJ(strip, 0) obj->data.s = STRNDUP_ARG;
END OBJ(rstrip, 0) obj->data.s = STRNDUP_ARG;
obj->callbacks.print = &strip_trailing_whitespace;
obj->callbacks.free = &gen_free_opaque;
END OBJ(catp, 0) obj->data.s = STRNDUP_ARG;