fix: Spacing of TODO YML
This commit is contained in:
parent
92aa04ba5a
commit
4c8dacb548
1 changed files with 6 additions and 3 deletions
|
@ -124,14 +124,17 @@ def allInformalTODO : CoreM (Array FullTODOInfo) := do
|
||||||
x.mapM informalTODO
|
x.mapM informalTODO
|
||||||
|
|
||||||
def FullTODOInfo.toYAML (todo : FullTODOInfo) : MetaM String := do
|
def FullTODOInfo.toYAML (todo : FullTODOInfo) : MetaM String := do
|
||||||
|
let content := todo.content
|
||||||
|
let contentIndent := content.replace "\n" "\n "
|
||||||
return s!"
|
return s!"
|
||||||
- content: \"{todo.content}\"
|
- file: {todo.fileName}
|
||||||
file: {todo.fileName}
|
|
||||||
githubLink: {Name.toGitHubLink todo.fileName todo.line}
|
githubLink: {Name.toGitHubLink todo.fileName todo.line}
|
||||||
line: {todo.line}
|
line: {todo.line}
|
||||||
isInformalDef: {todo.isInformalDef}
|
isInformalDef: {todo.isInformalDef}
|
||||||
isInformalLemma: {todo.isInformalLemma}
|
isInformalLemma: {todo.isInformalLemma}
|
||||||
category: {todo.category}"
|
category: {todo.category}
|
||||||
|
content: |
|
||||||
|
{contentIndent}"
|
||||||
|
|
||||||
unsafe def allTODOs : MetaM (List FullTODOInfo) := do
|
unsafe def allTODOs : MetaM (List FullTODOInfo) := do
|
||||||
let todos ← getTodoInfo
|
let todos ← getTodoInfo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue