Pagenum should be right padded

This commit is contained in:
Deon George 2018-12-12 14:31:30 +11:00
parent e60a7d9045
commit 7c914d7d13
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ abstract class Frame
if (strlen($frame) !== 1)
throw new \Exception('Frame invalid',500);
return sprintf(WHITE.'% '.static::$pagenum_length.'.0f%s',$num,$frame);
return WHITE.$num.$frame.(str_repeat(' ',static::$pagenum_length-strlen($num)));
}
/**