Skip to content

Commit

Permalink
Clipboard plugin (méli-mélo): Restore space indents
Browse files Browse the repository at this point in the history
#2411 accidentally-introduced tab indents into the plugin's JS file.

It was caused by a clash of EditorConfig settings (which apply GCWeb's basic linting settings to all méli-mélo files) vs ESLint (which excludes méli-mélo). The added indents adhered to the EditorConfig settings, but the file itself was using a different kind of indent style (groups of 4 spaces).

This changes the tab characters back into spaces.
  • Loading branch information
EricDunsworth committed Sep 5, 2024
1 parent d07d202 commit 891ca92
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions méli-mélo/2023-10-clipboard/js/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,18 +358,18 @@
if ( "noButton" in data === false ) {
buttonId = wb.getId();
switch ( data.btnAlign ) {
case "left":
btnAlign = "text-left ";
break;
case "right":
btnAlign = "text-right ";
break;
case "center":
btnAlign = "text-center ";
break;
case "none":
default:
btnAlign = "";
case "left":
btnAlign = "text-left ";
break;
case "right":
btnAlign = "text-right ";
break;
case "center":
btnAlign = "text-center ";
break;
case "none":
default:
btnAlign = "";
}
if ( getDisplayType( elm ) === true ) {
containTag = "span";
Expand Down

0 comments on commit 891ca92

Please sign in to comment.