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

HTMLGenerator - fix new line in "since" not working #7396

Merged

Conversation

ShaneBeee
Copy link
Contributor

@ShaneBeee ShaneBeee commented Jan 5, 2025

Description

This PR aims to do yet another doc fix, I shall call it YADF.

Anyways, in my previous PR for the since annotation supporting multiple lines, pickle had made a code suggestion to change <br> to <br/>.

I applied the code suggestion and didn't realize til after the PR was merged (and docs were created) that it did this:
(My fault for not testing... whoopsies)
(all on the same line, but no comma)
Screenshot 2025-01-05 at 1 40 50 AM

This PR fixes that issue by reverting that suggestion:
Screenshot 2025-01-05 at 1 41 17 AM

Might be my biggest PR to date 😂


Target Minecraft Versions: any
Requirements: none
Related Issues: none

Copy link
Member

@Efnilite Efnilite left a comment

Choose a reason for hiding this comment

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

I noticed this but I thought you could make any tag self close and itd just be the same as no self closing 😬

@AyhamAl-Ali
Copy link
Member

@APickledWalrus
Copy link
Member

This will break the searching feature 😬 https://github.com/SkriptLang/skript-docs/blob/45749eb68fe72b484c7832ebad25e17c92e51085/docs/js/main.js#L254

I can handle that in my PR for it

@AyhamAl-Ali AyhamAl-Ali added enhancement Feature request, an issue about something that could be improved, or a PR improving something. documentation Related to Skript's official documentation. require docs update A PR that requires Skript docs to be updated to reflect the related changes. labels Jan 5, 2025
@ShaneBeee
Copy link
Contributor Author

ok after a talk with Pickle, I have reverted my change, and removed the method that changes <br/> to /n

@APickledWalrus APickledWalrus merged commit 24c2652 into SkriptLang:dev/feature Jan 6, 2025
5 checks passed
@ShaneBeee ShaneBeee deleted the shane/fix-docs-since-new-line branch January 6, 2025 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to Skript's official documentation. enhancement Feature request, an issue about something that could be improved, or a PR improving something. require docs update A PR that requires Skript docs to be updated to reflect the related changes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants