def _create_html_tasklist(<EOL>self,<EOL>taskpaperDocPath):
self.log.info('<STR_LIT>')<EOL>if self.editorialRootPath:<EOL><INDENT>return<EOL><DEDENT>title = self.workspaceName<EOL>content = "<STR_LIT>" % locals()<EOL>doc = document(taskpaperDocPath)<EOL>docTasks = doc.tasks<EOL>for task in docTasks:<EOL><INDENT>tagString = "<STR_LIT:U+0020>".join(task.tags)<EOL>tagString2 = "<STR_LIT>"<EOL>for t in task.tags:<EOL><INDENT>t1 = t.split("<STR_LIT:(>")[<NUM_LIT:0>]<EOL>tagString2 += """<STR_LIT>""" % locals()<EOL><DEDENT>notes = task.notes<EOL>filepath = notes[<NUM_LIT:0>].title.split("<STR_LIT>")[<NUM_LIT:0>]<EOL>basename = os.path.basename(filepath).replace(<EOL>"<STR_LIT>", "<STR_LIT>").replace("<STR_LIT:->", "<STR_LIT:U+0020>")<EOL>filepath = "<STR_LIT>" + filepath<EOL>taskTitle = """<STR_LIT>""" % locals() +task.title[<NUM_LIT:2>:] + tagString2<EOL>if len(notes[<NUM_LIT:0>].title.split("<STR_LIT>")) > <NUM_LIT:1>:<EOL><INDENT>parent = notes[<NUM_LIT:0>].title.split("<STR_LIT>")[<NUM_LIT:1>]<EOL>parent = """<STR_LIT>""" % locals(<EOL>)<EOL><DEDENT>else:<EOL><INDENT>parent = """<STR_LIT>""" % locals(<EOL>)<EOL><DEDENT>taskContent = """<STR_LIT>""".join(task.to_string(<EOL>title=False, indentLevel=<NUM_LIT:0>).split("<STR_LIT:\n>")[<NUM_LIT:1>:])<EOL>if len(taskContent):<EOL><INDENT>taskContent = """<STR_LIT>""" +taskContent + """<STR_LIT>"""<EOL><DEDENT>else:<EOL><INDENT>taskContent = "<STR_LIT>"<EOL><DEDENT>htmlTask = """<STR_LIT>"""  % locals()<EOL>content += htmlTask<EOL><DEDENT>content += "<STR_LIT>"<EOL>htmlFilePath = taskpaperDocPath.replace("<STR_LIT>", "<STR_LIT>")<EOL>try:<EOL><INDENT>self.log.debug("<STR_LIT>" % (htmlFilePath,))<EOL>writeFile = codecs.open(<EOL>htmlFilePath, encoding='<STR_LIT:utf-8>', mode='<STR_LIT:w>')<EOL><DEDENT>except IOError as e:<EOL><INDENT>message = '<STR_LIT>' % (htmlFilePath,)<EOL>self.log.critical(message)<EOL>raise IOError(message)<EOL><DEDENT>writeFile.write(content)<EOL>writeFile.close()<EOL>self.log.info('<STR_LIT>')<EOL>return htmlFilePath<EOL>
*create an html version of the single taskpaper index task list*

        **Key Arguments:**
            - ``taskpaperDocPath`` -- path to the task index taskpaper doc

        **Return:**
            - ``htmlFilePath`` -- the path to the output HTML file