Skip to content

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

Open
aavanian wants to merge 2 commits intoalphapapa:masterfrom
aavanian:master
Open

Fix: (--check-pandoc-no-wrap-option) Handle option has been removed#69
aavanian wants to merge 2 commits intoalphapapa:masterfrom
aavanian:master

Conversation

@aavanian
Copy link
Copy Markdown

Closes #68

Copy link
Copy Markdown
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.

Comment thread 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
Copy Markdown
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
Copy Markdown
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
@aavanian
Copy link
Copy Markdown
Author

Note on the last two actions: I issued this PR from my fork's master and it picked up a change that wasn't meant for this PR. Apologies for the noise.

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