By default, a JSesh document is one long sheet, as wide as its longest line. For a document meant to be printed, or exported as a multi-page PDF, give it a page size: choose File > Pagination.

Check Use a page, then choose:
With a page, lines are cut at the width of the page (inside the margins), and the text is cut into pages. View > Show Page Limits shows the limits of the pages on the screen.
A page height of 0 means that lines are cut at the width of the page, but the text is not cut into pages: this is useful for a long text which will be pasted into a word processor.
To start a new page before the end of the page, choose Insert > New Page (Shift+Enter). Inside a zone, a page break works as a line break.
Pages are used when you print and when you export as PDF. When you copy a passage into a word processor, the page settings are not used.