Click on a dot twice to finish finish a line and start a new one... or push the new line button!
So it's not really infinite, but it will take you a long time draw 14,237 lines.