From bb267b7a40d849569375da475b412c16fce02acb Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Sun, 18 Jan 2026 13:44:30 +0100 Subject: Pad derivative printing to two characters. --- charf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'charf.c') 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; -- cgit v1.2.3