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

Support for verbatim blocks #12

Merged
merged 3 commits into from
Nov 11, 2023

Conversation

MichaelEischer
Copy link
Member

Currently it is not possible to include verbatim sections in the changelog. This PR adds minimal support for basic verbatim blocks using the markdown syntax, that is blocks enclosed in triple backticks. For these blocks, spaces and newlines are kept.

The wrapIndent function is also adjusted to not wrap around these verbatim sections.

I've also fixed the wrapIndent function to actually honor the specified column limit. Previously, inserted spaces between words were not counted against the limit.

@MichaelEischer MichaelEischer changed the title Verbatim support Support for verbatim blocks Jan 8, 2023
@micbar
Copy link
Contributor

micbar commented Nov 9, 2023

good idea 👍

Copy link
Member Author

@MichaelEischer MichaelEischer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I've rebased the PR.

@MichaelEischer MichaelEischer merged commit c4ad488 into restic:master Nov 11, 2023
3 checks passed
@MichaelEischer MichaelEischer deleted the verbatim-support branch November 11, 2023 19:14
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

Successfully merging this pull request may close these issues.

2 participants