Skip to content

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

Merged
APickledWalrus merged 3 commits intoSkriptLang:dev/featurefrom
ShaneBeee:shane/fix-docs-since-new-line
Jan 6, 2025
Merged

HTMLGenerator - fix new line in "since" not working#7396
APickledWalrus merged 3 commits intoSkriptLang:dev/featurefrom
ShaneBeee:shane/fix-docs-since-new-line

Conversation

@ShaneBeee
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

@APickledWalrus
Copy link
Copy Markdown
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
Copy Markdown
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
@ShaneBeee ShaneBeee deleted the shane/fix-docs-since-new-line branch January 6, 2025 18:14
erenkarakal pushed a commit to erenkarakal/Skript that referenced this pull request Nov 26, 2025
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