10up / wp-scaffold

10up WordPress project scaffold.
MIT License
194 stars 46 forks source link

Example Block: Remove tabs #155

Closed roseg43 closed 2 years ago

roseg43 commented 2 years ago

Removed cases where tabs are used instead of spaces for indenting, so that the spacing of the file is consistent.

Description of the Change

The block.json file for the example block inconsistently uses tabs and spaces for indentation. I've fixed any cases where tabs are being used, as the majority of the document was using spaces before this fix.

This fixes an issue where indenting would appear inconsistent on platforms like GitLab / GitHub when viewing assets.

How to test the Change

Open themes/10up-theme/includes/blocks/example-block/block.json in your editor of choice and confirm that all indentation uses a consistent character.

Changelog Entry

Fixed - Bug fix Example Block: Fix instances where tabs were being mixed with spaces for indentation in block.json

Credits

Props @roseg43 (wasn't sure if I should add myself, so here I am 😂)

Checklist: