' ' need to be written only if length of data->str is less that info->width
so condition need to be added before while()
if (info->width > (int)ft_strlen(data->str))
https://github.com/4slan/ft_printf/blob/8163f1e1ea968b9c4674ad737fb72afa0fe6cfa0/sources/types/type_s.c#L30
' 'need to be written only if length ofdata->stris less thatinfo->widthso condition need to be added before
while()if (info->width > (int)ft_strlen(data->str))https://github.com/4slan/ft_printf/blob/8163f1e1ea968b9c4674ad737fb72afa0fe6cfa0/sources/types/type_s.c#L30