Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pretty Printing: Line wrapping #8

Open
Folds opened this issue Apr 3, 2014 · 1 comment
Open

Pretty Printing: Line wrapping #8

Folds opened this issue Apr 3, 2014 · 1 comment

Comments

@Folds
Copy link
Owner

Folds commented Apr 3, 2014

Should the pretty printer automatically wrap lines to fit on screen, and start the continuation indented by two more spaces than the start of the line was indented?

@GerryRzeppa
Copy link

While it is true that line-wrapping is a normal thing in written English, we left it out of our Plain English text editor because certain kinds of files are best viewed without wrapping (our stored document files, for example, and even the Plain English Noodle which includes some very long hexadecimal literals like the Osmosian font and the "cluck" sound). It also turns out that in written English, lists of imperative commands are typically short and written one to a line, like so:

Take the kids to school.
Pick up the dry cleaning.
Meet the realtor at the old house.

In fact, such lists are often numbered, which we considered for looping:

  1. Get a page from the file; if there aren't any more, we're done.
  2. Print the page.
  3. Go to step 1.

Further research is needed in these areas.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants