File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 36
36
def task_lists_to_markdown (task_lists : list [TaskList ]) -> str :
37
37
"""Parses Task Lists to a Pandoc markdown"""
38
38
39
- def str_to_pandoc ( str : str ):
39
+ def text_to_pandoc ( text : str ):
40
40
elems = []
41
- for s in str .split ():
42
- elems .append (Str (s ))
41
+ for word in text .split ():
42
+ elems .append (Str (word ))
43
43
elems .append (Space ())
44
44
return elems [:- 1 ]
45
45
@@ -54,7 +54,7 @@ def task_to_pandoc(task: Task, parent_contains_notes: bool):
54
54
pandocTask = []
55
55
56
56
task_sign = "☒" if task .completed () else "☐"
57
- task_title = [Str (task_sign ), Space ()] + str_to_pandoc (task .title )
57
+ task_title = [Str (task_sign ), Space ()] + text_to_pandoc (task .title )
58
58
59
59
if parent_contains_notes :
60
60
pandocTask .append (Para (task_title ))
@@ -83,7 +83,7 @@ def task_to_pandoc(task: Task, parent_contains_notes: bool):
83
83
]
84
84
85
85
for task_list in task_lists :
86
- content .append (Header (2 , EMPTY_ATTRS , str_to_pandoc (task_list .title )))
86
+ content .append (Header (2 , EMPTY_ATTRS , text_to_pandoc (task_list .title )))
87
87
content .append (
88
88
OrderedList (ORDERED_FIRST_ELEM , tasks_to_pandoc (task_list .tasks ))
89
89
)
You can’t perform that action at this time.
0 commit comments