Make a simple word wrapper
Python 2, 26 bytes



from textwrap import*
fill


Try it online!

Meh... built-ins are boring... instead, have a nice 87-byte solution here:

s,n=input()
x=''
for i in s.split():c=n&lt;len(x+i);exec'print x'*c;x=x*-~-c+i+' '
print x


Try it online!

Outputs trailing spaces.