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

        result = enmlOutput.convertTodoToEvernote(source)

        self.assertEqual(target, result)
def org2ever(pSourceFile, pDestinationFile):
    vCache = cacheFile(pSourceFile)
    if isOrgModeFile(vCache):
        vCache = enmlOutput.convertDoneToEvernote(pCache = vCache)
        vCache = enmlOutput.convertTodoToEvernote(pCache = vCache)
        vCache = enmlOutput.convertToEvernoteLinkNotation(pCache=vCache)
        vCache = escapeCharsFile(pSource=vCache, pChars=fEscapeChars)
        vCache =  enmlOutput.translateOrgToHTMLTables(pCache = vCache)
        writeFile(pDestinationFile, vCache)