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

Fix: (--check-pandoc-no-wrap-option) Handle option has been removed #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aavanian
Copy link

Closes #68

Copy link
Owner

@alphapapa alphapapa left a comment

Choose a reason for hiding this comment

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

Thanks for reporting this bug and suggesting this patch. I'd suggest making these amendments, and then it can be merged.

org-web-tools.el Outdated
Comment on lines 199 to 200
(not (string-match "--no-wrap is deprecated" (buffer-string)))
(not (string-match "--no-wrap has been removed" (buffer-string))))
Copy link
Owner

Choose a reason for hiding this comment

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

This would be better written using a single regular expression matching both strings. The rx macro makes these easy to read and write.

As well, this would be a good opportunity to use string-match-p instead.

Copy link
Author

Choose a reason for hiding this comment

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

Done though not sure about your preference about line length and where to break it.

@alphapapa alphapapa self-assigned this Jan 25, 2024
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.

org-web-tools--check-pandoc-no-wrap-option fails to correctly set the option
2 participants