Skip to content

Add line wrap for examples in documentation#139

Merged
AVHopp merged 3 commits intomainfrom
doc/wrap_notebooks
Feb 23, 2024
Merged

Add line wrap for examples in documentation#139
AVHopp merged 3 commits intomainfrom
doc/wrap_notebooks

Conversation

@AVHopp
Copy link
Copy Markdown
Collaborator

@AVHopp AVHopp commented Feb 23, 2024

This PR ensures that long lines are wrapped in the files that are created when executing the examples as jupyter notebooks.

A line is now wrapped when it is longer than the size that we allow for our python code, which is 88 characters. The only exception is when a link in detected since a line wrap might break this link. This is done by checking whether the sequence ]( is present in the line.

@AVHopp AVHopp self-assigned this Feb 23, 2024
@AVHopp AVHopp added bug Something isn't working documentation Improvements or additions to documentation labels Feb 23, 2024
@AVHopp AVHopp merged commit 72e1fbf into main Feb 23, 2024
@AVHopp AVHopp deleted the doc/wrap_notebooks branch February 23, 2024 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants