mirror of
https://github.com/Llewellynvdm/conky.git
synced 2025-02-12 17:08:29 +00:00
$format_time treats ( and ) as special chars
This commit is contained in:
parent
59594e70d2
commit
f8bae62234
@ -1113,10 +1113,11 @@
|
|||||||
</command>
|
</command>
|
||||||
<option>seconds format</option>
|
<option>seconds format</option>
|
||||||
</term>
|
</term>
|
||||||
<listitem>Format time given in seconds. Format is a string
|
<listitem>Format time given in seconds. This var only works when
|
||||||
|
the times_in_seconds configuration setting is on. Format is a string
|
||||||
that should start and end with a "-char. The "-chars are not
|
that should start and end with a "-char. The "-chars are not
|
||||||
part of the output, \w,\d,\h,\m,\s and \\ are replaced by
|
part of the output, \w,\d,\h,\m,\s,\(,\) and \\ are replaced by
|
||||||
weeks,days,hours,minutes,seconds and \. If you leave out a unit,
|
weeks,days,hours,minutes,seconds,(,) and \. If you leave out a unit,
|
||||||
it's value will be expressed in the highest unite lower then the
|
it's value will be expressed in the highest unite lower then the
|
||||||
one left out. Text between ()-chars will not be visible if a
|
one left out. Text between ()-chars will not be visible if a
|
||||||
replaced unit in this text is 0. If seconds is a decimal number
|
replaced unit in this text is 0. If seconds is a decimal number
|
||||||
|
@ -229,7 +229,9 @@ void print_format_time(struct text_object *obj, char *p, unsigned int p_max_size
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case '\\':
|
case '\\':
|
||||||
p[output_length] = '\\';
|
case '(':
|
||||||
|
case ')':
|
||||||
|
p[output_length] = *currentchar;
|
||||||
output_length++;
|
output_length++;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user