Skip to content

Commit

Permalink
Use dedent indents consistently
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaoumov committed Jul 25, 2022
1 parent 319a737 commit 7fbc068
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 78 deletions.
76 changes: 38 additions & 38 deletions src/test/paragraph-blank-lines.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,60 +209,60 @@ ruleTest({
// accounts for https://github.com/platers/obsidian-linter/issues/300
testName: 'Make sure obsidian multiline comments with single line comment prior is not affected',
before: dedent`
%% fold %%
%% fold %%
## R
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%
## R
%%
HW:: --
T:: 0
%%
`,
after: dedent`
%% fold %%
%% fold %%
## R
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%
## R
%%
HW:: --
T:: 0
%%
`,
},
],
Expand Down
4 changes: 2 additions & 2 deletions src/test/space-between-chinese-and-english-or-numbers.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ ruleTest({
// accounts for https://github.com/platers/obsidian-linter/issues/303
testName: 'Make sure that spaces are added after a dollar sign if followed by Chinese characters',
before: dedent`
这是一个数学公式$f(x)=x^2$这是一个数学公式
这是一个数学公式$f(x)=x^2$这是一个数学公式
`,
after: dedent`
这是一个数学公式 $f(x)=x^2$ 这是一个数学公式
这是一个数学公式 $f(x)=x^2$ 这是一个数学公式
`,
},
],
Expand Down
76 changes: 38 additions & 38 deletions src/test/two-spaces-between-lines-with-content.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,60 +30,60 @@ ruleTest({
// accounts for https://github.com/platers/obsidian-linter/issues/300
testName: 'Make sure obsidian multiline comments with single line comment prior is not affected',
before: dedent`
%% fold %%
%% fold %%
## R
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%
## R
%%
HW:: --
T:: 0
%%
`,
after: dedent`
%% fold %%
%% fold %%
## R
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %%
%%
HW:: --
T:: 0
%%
## R
# A %% fold %% nocomment
%%
HW:: --
T:: 0
%%