#NEWLINE# def create_todos( content , protocol , ref_id ) : #NEWLINE# #INDENT# content = re . sub ( '\\[ \\](.*)' , ( '<label><input type="checkbox" class="todo-checkbox" data-protocol="%s" data-id="%s">\\1</label>' % ( protocol , ref_id ) ) , content ) #NEWLINE# content = re . sub ( '\\[x\\](.*)' , ( '<label><input type="checkbox" class="todo-checkbox" data-protocol="%s" data-id="%s" checked>\\1</label>' % ( protocol , ref_id ) ) , content ) #NEWLINE# return content