Limiting line breaks

Hey guys, how can I limit the amount of line breaks inside a multiline input? I mean, the way it is by deafult users can insert a lot of blank space pressing enter a lot of times and just writing after all this blank space. How can I limit to only one line break and not 2 or more together?

This topic was automatically closed after 70 days. New replies are no longer allowed.