Skip to content

Commit

Permalink
✏️ Re-add trailing whitespace in some templates
Browse files Browse the repository at this point in the history
Also update the .editorconfig to correctly turn the automatic removal of trailing whitespace off for these files
  • Loading branch information
miscoined authored and ebullient committed May 11, 2024
1 parent 7036833 commit cec3874
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ insert_final_newline = true
indent_style = space
indent_size = 2

[*.md]
[*.{md,txt}]
indent_size = 4
trim_trailing_whitespace = false

[*.{java,xml,xslt}]
indent_size = 4
indent_size = 4
2 changes: 1 addition & 1 deletion src/main/resources/templates/toolsPf2e/creature2md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ aliases:
{/each}
{/if}
---
# {resource.name} *Creature {resource.level}*
# {resource.name} *Creature {resource.level}*
{#if resource.traits}{#each resource.traits}{it} {/each}{/if}

```ad-statblock
Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/templates/toolsPf2e/deity2md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ tags:
{/if}
aliases: ["{resource.name}"{#each resource.aliases}, "{it}"{/each}]
---
# {resource.name}{#if resource.aliases } ({#each resource.aliases}{it}{#if it_hasNext}, {/if}{/each}){/if} *({resource.alignment})*
*Source: {resource.source}*
# {resource.name}{#if resource.aliases } ({#each resource.aliases}{it}{#if it_hasNext}, {/if}{/each}){/if} *({resource.alignment})*
*Source: {resource.source}*
{#if resource.text }

{resource.text}
Expand Down Expand Up @@ -55,7 +55,7 @@ title: {avatar.name}
```
{/if}{#if resource.intercession }

## Divine intercession
## Divine intercession
*Source: {resource.intercession.source}*

{resource.intercession.flavor}
Expand Down

0 comments on commit cec3874

Please sign in to comment.