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

remove extra " #28218

Merged
merged 2 commits into from
Jul 28, 2023
Merged

remove extra " #28218

merged 2 commits into from
Jul 28, 2023

Conversation

yin1999
Copy link
Member

@yin1999 yin1999 commented Jul 27, 2023

Description

remove extra "

@yin1999 yin1999 requested a review from a team as a code owner July 27, 2023 15:29
@yin1999 yin1999 requested review from chrisdavidmills and removed request for a team July 27, 2023 15:29
@github-actions github-actions bot added the Content:Learn:Forms Learning area Forms docs label Jul 27, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Jul 27, 2023

Preview URLs

(comment last updated: 2023-07-27 15:42:53)

Copy link
Contributor

@CBID2 CBID2 left a comment

Choose a reason for hiding this comment

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

Looks pretty good @yin1999! :)

hamishwillee
hamishwillee previously approved these changes Jul 28, 2023
Copy link
Collaborator

@hamishwillee hamishwillee 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 the fix. Running prettier on HTML is usually not a good idea - it does a horrible job. Was this something you chose to do or the toolchain forced you to do?

@hamishwillee hamishwillee self-requested a review July 28, 2023 00:06
@hamishwillee hamishwillee dismissed their stale review July 28, 2023 00:06

Added it accidentally. The fix itself is good but the HTML prettier stuff is not.

@yin1999
Copy link
Member Author

yin1999 commented Jul 28, 2023

Thanks for the fix. Running prettier on HTML is usually not a good idea - it does a horrible job. Was this something you chose to do or the toolchain forced you to do?

We still run prettier format check in translated-content. After I fix the broken html (in mdn/translated-content#14568), the format check just failed. So I run yarn prettier -w /path/to/file to those two PRs.

@hamishwillee
Copy link
Collaborator

OK. Thanks. @queengooborg Thoughts on this? @yin1999 is "doing the right thing", but the resulting prettier changes to HTML are rubbish.

Copy link
Collaborator

@queengooborg queengooborg left a comment

Choose a reason for hiding this comment

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

Prettier's formatting for HTML is not great, I think we all agree on this. We don't have any control over it, though. Plus, we already format all our HTML with Prettier.

@queengooborg queengooborg merged commit 4a428ef into mdn:main Jul 28, 2023
6 checks passed
@hamishwillee
Copy link
Collaborator

Really? I thought we formatted only the JS. I hate this. I would have suggested nolint.

@hamishwillee
Copy link
Collaborator

Hi @yin1999

Just FYI, following some advice from @queengooborg I improved the HTML in #28230 . What I hadn't realized is that prettier does different things based on your starting point. So by putting some of the text on different lines it did a better job of formatting.

Thanks for your fix!

@yin1999
Copy link
Member Author

yin1999 commented Jul 28, 2023

Hi @yin1999

Just FYI, following some advice from @queengooborg I improved the HTML in #28230 . What I hadn't realized is that prettier does different things based on your starting point. So by putting some of the text on different lines it did a better job of formatting.

Thanks for your fix!

Thanks for the additional work on this @hamishwillee 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Learn:Forms Learning area Forms docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants