Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix GitHub issue link formatting #970

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

Kissaki
Copy link
Contributor

@Kissaki Kissaki commented Nov 30, 2022

Previously, errors were reported on a single line, where the inline code-fencing on message worked.

The current logic is:
The html fetcher throws FetchDocumentErrors, with the URL fenced with apostrophe '. Archivist collects these errors in InaccessibleContentError, which produces a multiline error message (generic text + foreach(\n- error)).

Because the message is multiline now, the inline code fencing with backticks no longer worked.

As a side effect, the GitHub URL identification included the closing '` in the URL. Without the ` the ' is not included in the URL href.

So dropping the now invalid backticks resolves both the invalid backticks and wrong URL linking.

Fixes #967

Previously, errors were reported on a single line, where the inline code-fencing on message worked.

The current logic is:
The html fetcher throws FetchDocumentErrors, with the URL fenced with apostrophe `'`.
Archivist collects these errors in InaccessibleContentError, which produces a multiline error message (generic text + foreach(\n- error)).

Because the message is multiline now, the inline code fencing with backticks no longer worked.

As a side effect, the GitHub URL identification included the closing '` in the URL. Without the ` the ' is not included either.

Dropping the now invalid backticks resolves both issues.

Fixes OpenTermsArchive#967
Copy link
Member

@MattiSG MattiSG left a comment

Choose a reason for hiding this comment

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

👌

@MattiSG MattiSG merged commit 8d32674 into OpenTermsArchive:main Dec 1, 2022
@MattiSG
Copy link
Member

MattiSG commented Dec 6, 2022

The issue is still present, for example in OpenTermsArchive/france-declarations#258 (comment).
This is because of failing tests in CI which blocked deployment. I opened #973 to track progress.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bot Report Tickets have faulty description syntax
2 participants