realworldocaml/book

Spacing for code snippets on the PDF and web page is off.

yminsky opened this issue · 1 comments

For a source snippet (from the guided tour) that looks like this:

# let divide x y =
    if y = 0 then None else Some (x / y);;
val divide : int -> int -> int option = <fun>

The rendered code looks like this:

Screenshot from 2022-02-20 21-20-07

the web page has the same problem.

Screenshot from 2022-02-20 21-21-24

Just wanted to highlight that this is still an issue, but in the latest version, I see the problem in the pdf but not the website. Note that this example is from the Records chapter.

First, PDF:

pdf

Second, web:

web