summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: eef5484)
raw | patch | inline | side by side (parent: eef5484)
author | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 28 Apr 2002 14:14:48 +0000 (14:14 +0000) | ||
committer | oetiker <oetiker@a5681a0c-68f1-0310-ab6d-d61299d08faa> | |
Sun, 28 Apr 2002 14:14:48 +0000 (14:14 +0000) |
passed to printf() is not allowing certain valid printf() style operations
which make text alignment much more fun.
-- Richard A Steenbergen <ras@e-gerbil.net>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@131 a5681a0c-68f1-0310-ab6d-d61299d08faa
which make text alignment much more fun.
-- Richard A Steenbergen <ras@e-gerbil.net>
git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@131 a5681a0c-68f1-0310-ab6d-d61299d08faa
program/src/rrd_graph.c | patch | blob | history |
index 074ad448b543a6aed2ac7eb19f93db8b06fc804f..55f6cee037f1a63aeb25540c687960c3d9459d30 100644 (file)
--- a/program/src/rrd_graph.c
+++ b/program/src/rrd_graph.c
ptr++;
n++;
if (*ptr == '\0') return 1;
+ else if (*ptr == ' ') ptr++;
+ else if (*ptr == '-') ptr++;
+ else if (*ptr == '+') ptr++;
if (*ptr == 'e' || *ptr == 'f') {
ptr++;
} else { return 1; }