Ejemplo n.º 1
0
    def testConvertTodoToOrg(self):
        target = ["*** TODO This is a task"]
        source = ["***<en-todo/> This is a task"]

        result = orgOutput.convertTodoToOrg(source)

        self.assertEqual(target, result)
def ever2org(pSourceFile, pDestinationFile):
    vCache = cacheFile(pSourceFile)
    if isOrgModeFile(vCache):
        vCache = removeEmptyLines(vCache)
        vCache = orgOutput.completeOrgTableNotation(vCache)
        vCache = unescapeCharsFile(vCache, fEscapeChars)
        vCache = orgOutput.convertToOrgLinkNotation(pSource=vCache)
        vCache = orgOutput.convertDoneToOrg(pCache = vCache)
        vCache = orgOutput.convertTodoToOrg(pCache = vCache)
        writeFile(pDestinationFile, vCache)