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 extraneous spaces from icon markup #3256

Merged
merged 4 commits into from Jul 5, 2020

Conversation

PeterShaggyNoble
Copy link
Member

Issue: Fixes #3247
Alexa rank: n/a

Checklist

  • I updated the JSON data in _data/simple-icons.json
  • I optimized the icon with SVGO or SVGOMG
  • The SVG viewbox is 0 0 24 24

Description

Removes spaces

  • before the > in the opening svg tag in ardour.svg, centos.svg & cloudsmith.svg,
  • between the role attribute and its = in the opening svg tag in jetbrains.svg, and,
  • before the closing / in the path tag in celery.svg, deepin.svg ktm.svg & ublockorigin.svg.

@PeterShaggyNoble PeterShaggyNoble added the update icon/data Issues or pull requests regarding icons that are outdated, this can be the SVG or color or both label Jun 25, 2020
Copy link
Contributor

@ericcornelissen ericcornelissen left a comment

Choose a reason for hiding this comment

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

These changes are fine by me. Are we not going to lint for these kind of issues until they can be automatically fixed?

@PeterShaggyNoble
Copy link
Member Author

Depends how far out we are from implementing #2380 - SVGO will strip away any excess whitespace for us.

@ericcornelissen
Copy link
Contributor

Depends how far out we are from implementing #2380 - SVGO will strip away any excess whitespace for us.

Since we need to create a Probot for that, not for as I don't think anyone started doing that yet.

@PeterShaggyNoble
Copy link
Member Author

PeterShaggyNoble commented Jun 29, 2020

OK, I've updated the RegEx you added in #3239 with the one I suggested in #3247 and reworded the related error message accordingly.

Build passed

@PeterShaggyNoble PeterShaggyNoble added the meta Issues or pull requests regarding the project or repository itself label Jun 29, 2020
Copy link
Contributor

@ericcornelissen ericcornelissen left a comment

Choose a reason for hiding this comment

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

I'm personally OK with enforcing this even though we do not (yet) automatically fix those. Still, I would like at least one other @simple-icons/maintainers to accept this before we merge this in because of that.

The error message is fine by me, but I expect there will be some instances where a contributor gets confused by it. I think it's best if we update the error message based on feedback in such instances.

@runxel
Copy link
Member

runxel commented Jul 5, 2020

Consistency is always good :)
And the PR looks good to me so I will gladly merge this in. Thank you for the work @PeterShaggyNoble, and of course for detecting this in the first place. 👍

@runxel runxel merged commit 6a2e8ca into simple-icons:develop Jul 5, 2020
@PeterShaggyNoble PeterShaggyNoble deleted the update/markup branch July 10, 2020 10:31
github-actions bot added a commit that referenced this pull request Jul 14, 2020
# New Icons

- Drooble (#3231)
- IFTTT (#3304)
- JPEG (#3303)
- Planet (#3274)

# Updated Icons

- Ardour (#3256)
- Basecamp (#3277)
- Celery (#3256)
- CentOS (#3256)
- Cloudsmith (#3256)
- deepin (#3256)
- JetBrains (#3256)
- KTM (#3256)
- Nucleo (#3285)
- uBlock Origin (#3256)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Issues or pull requests regarding the project or repository itself update icon/data Issues or pull requests regarding icons that are outdated, this can be the SVG or color or both
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keeping our markup consistent
3 participants