Skip to content

Commit aa86f0b

Browse files
authoredMay 11, 2023
fix: spell. "identation" → "indentation " (#598)
1 parent 16011ec commit aa86f0b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed
 

‎CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@
520520

521521
### Bug Fixes
522522

523-
- remove extra identation for sass content ([7d0f437](https://github.com/kaisermann/svelte-preprocess/commit/7d0f4376037d1ff6b426e2d6882adb6b08d95464))
523+
- remove extra indentation for sass content ([7d0f437](https://github.com/kaisermann/svelte-preprocess/commit/7d0f4376037d1ff6b426e2d6882adb6b08d95464))
524524

525525
## [3.9.9](https://github.com/kaisermann/svelte-preprocess/compare/v3.9.7...v3.9.9) (2020-06-19)
526526

‎src/transformers/pug.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import pug from 'pug';
44
import type { Transformer, Options } from '../types';
55

66
// Mixins to use svelte template features
7-
const GET_MIXINS = (identationType: 'tab' | 'space') =>
7+
const GET_MIXINS = (indentationType: 'tab' | 'space') =>
88
`mixin if(condition)
99
%_| {#if !{condition}}
1010
%_block
@@ -50,7 +50,7 @@ mixin const(expression)
5050
mixin debug(variables)
5151
%_| {@debug !{variables}}`.replace(
5252
/%_/g,
53-
identationType === 'tab' ? '\t' : ' ',
53+
indentationType === 'tab' ? '\t' : ' ',
5454
);
5555

5656
const transformer: Transformer<Options.Pug> = async ({
@@ -67,8 +67,8 @@ const transformer: Transformer<Options.Pug> = async ({
6767
...options,
6868
};
6969

70-
const { type: identationType } = detectIndent(content);
71-
const input = `${GET_MIXINS(identationType ?? 'space')}\n${content}`;
70+
const { type: indentationType } = detectIndent(content);
71+
const input = `${GET_MIXINS(indentationType ?? 'space')}\n${content}`;
7272
const compiled = pug.compile(
7373
input,
7474
pugOptions,

0 commit comments

Comments
 (0)
Please sign in to comment.