Skip to content

Conversation

@TobiasWrigstad
Copy link
Collaborator

This branch adds an edge case to snippet processing that uses a normal hard line break (\\) instead of our built-in spacing command (\PromptInputSpace) when it compiles a <JAVASCRIPT_PROMPT> if the snippet occurs inside a list (OL) environment.

There is only one such case in the entire book on p 369 (p 371 in the initial submit).

You can uncomment line 165 instead of 166 in processSnippetPDF.js to have the command also output **** into the PDF right before the hard line break. You can then seach for **** to verify that there is indeed only a single case of this in the book.

Here is what the case on p. 369 looks like with that debug code turned on. Observe that the spacing is good, which is the bug we are trying to fix.

image

Obviously, this code incurs some technical debt that we don't want but I consider this the right fix for now.

@martin-henz martin-henz merged commit 76f1f58 into master Nov 10, 2021
@RichDom2185 RichDom2185 deleted the p371-bug branch July 7, 2024 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants