summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Weigt <juw@posteo.de>2026-01-18 13:44:30 +0100
committerJulian Weigt <juw@posteo.de>2026-02-04 15:56:57 +0100
commitbb267b7a40d849569375da475b412c16fce02acb (patch)
tree8a5a7b59a45cb24bfb5d830684844ae947ed1c6a
parent34670ab7a63df67fe3b2907293512424a6e3fa0e (diff)
Pad derivative printing to two characters.
-rw-r--r--charf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/charf.c b/charf.c
index 174884b..71b6962 100644
--- a/charf.c
+++ b/charf.c
@@ -182,7 +182,7 @@ void format_result(char* s, int index, int k, EXPTYPE p, VALUETYPE r, int format
char rts[128];
exptype_to_string(e,p);
root_to_string(rts,r,p);
- l += sprintf(s+l,"|f^(%d)|_%s: %s",k,e,rts);
+ l += sprintf(s+l,"|f^(%2d)|_%s: %s",k,e,rts);
}
else if(format == FORMAT_LATEX){
int l = 0;