aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-04 02:09:32 -0500
committerGitHub <noreply@github.com>2024-02-04 07:09:32 +0000
commit1a10af12fb16d5719818c3dc16f95af075210190 (patch)
treef1adc01c3eef0f1dd96d454219e371c1dacf38c6
parente4c6608103be5b031a0ba3ce1c70982114480360 (diff)
Fix EOL whitespace (#631)
* Remove eol whitespace * Add setting
-rw-r--r--.vscode/settings.json1
-rw-r--r--ext/data/templates/anki-field-templates-upgrade-v24.handlebars2
-rw-r--r--ext/data/templates/default-anki-field-templates.handlebars2
-rw-r--r--test/data/html/document-util.html6
4 files changed, 6 insertions, 5 deletions
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 44bef962..5aa6512c 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -25,6 +25,7 @@
"typescript"
],
"files.eol": "\n",
+ "files.trimTrailingWhitespace": true,
"html-validate.validate": [
"html"
]
diff --git a/ext/data/templates/anki-field-templates-upgrade-v24.handlebars b/ext/data/templates/anki-field-templates-upgrade-v24.handlebars
index 2288737c..cd85028a 100644
--- a/ext/data/templates/anki-field-templates-upgrade-v24.handlebars
+++ b/ext/data/templates/anki-field-templates-upgrade-v24.handlebars
@@ -4,7 +4,7 @@
{{~#each definition.phoneticTranscriptions~}}
{{~#each phoneticTranscriptions~}}
<li>
- {{~set "any" false~}}
+ {{~set "any" false~}}
{{~#each tags~}}
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
{{name}}
diff --git a/ext/data/templates/default-anki-field-templates.handlebars b/ext/data/templates/default-anki-field-templates.handlebars
index 07efd07e..63613acf 100644
--- a/ext/data/templates/default-anki-field-templates.handlebars
+++ b/ext/data/templates/default-anki-field-templates.handlebars
@@ -239,7 +239,7 @@
{{~#each definition.phoneticTranscriptions~}}
{{~#each phoneticTranscriptions~}}
<li>
- {{~set "any" false~}}
+ {{~set "any" false~}}
{{~#each tags~}}
{{~#if (get "any")}}, {{else}}<i>({{/if~}}
{{name}}
diff --git a/test/data/html/document-util.html b/test/data/html/document-util.html
index 8e007392..7ece0a6d 100644
--- a/test/data/html/document-util.html
+++ b/test/data/html/document-util.html
@@ -271,7 +271,7 @@
" わゐ ゑを",
" "
]
- }'
+ }'
>
<span>
あいうえお
@@ -353,7 +353,7 @@
" わゐ ゑを",
" t"
]
- }'
+ }'
>
<span>
あいうえお
@@ -394,7 +394,7 @@
" わゐ ゑを",
" t"
]
- }'
+ }'
>
<span>
あいうえお