*get all tasks tagged with a sync-tag from taskpaper files*

        **Key Arguments:**
            - ``taskpaperFiles`` -- paths to all taskpaper files in workspace
            - ``tagSet`` -- the tagset to extract from the taskpaper files.
            - ``editorial`` -- format links for editorial ios apps
            - ``workflowTagSet`` -- does the tag set contain workflow tags (if not skip the non-live project lists)
            - ``includeFileTags`` -- if the tag is in the filepath (e.g. /@due/mytasks.taskpaper) include all items the file in that tag set

        **Return:**
            - ``content`` -- the given tagged content of all taskpaper files in a workspace (string)

def _get_tagged_content_from_taskpaper_files(
            self,
            taskpaperFiles,
            tagSet,
            editorial=False,
            workflowTagSet=False,
            includeFileTags=True):
        """*get all tasks tagged with a sync-tag from taskpaper files*

        **Key Arguments:**
            - ``taskpaperFiles`` -- paths to all taskpaper files in workspace
            - ``tagSet`` -- the tagset to extract from the taskpaper files.
            - ``editorial`` -- format links for editorial ios apps
            - ``workflowTagSet`` -- does the tag set contain workflow tags (if not skip the non-live project lists)
            - ``includeFileTags`` -- if the tag is in the filepath (e.g. /@due/mytasks.taskpaper) include all items the file in that tag set

        **Return:**
            - ``content`` -- the given tagged content of all taskpaper files in a workspace (string)
        """
        self.log.info(
            'starting the ``_get_tagged_content_from_taskpaper_files`` method')

        content = ""
        for tp in taskpaperFiles:

            done = False
            if not workflowTagSet:
                for tag in ["@next", "@hold", "@done", "@someday"]:
                    if "/" + tag + "/" in tp:
                        done = True
            if done:
                continue

            # OPEN TASKPAPER FILE
            doc = document(tp)
            basename = os.path.basename(tp).replace("-", " ").upper()
            archive = doc.get_project("Archive")
            if archive:
                archive.delete()

            fileTagged = False
            done = False
            for tag in tagSet:
                if includeFileTags == True:
                    tag = "@" + tag.replace("@", "")
                    if "/%(tag)s/" % locals() in tp:
                        fileTagged = True
                if "/@done/" in tp:
                    done = True

            if done:
                continue

            # GENERATE THE EDITORIAL FILE LINK
            if self.editorialRootPath:
                tp = urllib.quote(tp)
                tp = tp.replace(
                    self.editorialRootPath, "editorial://open") + "?root=dropbox"

            for tag in tagSet:
                tag = "@" + tag.replace("@", "")
                etag = "%40" + tag.replace("@", "")

                # DETERMINE THE SUBORDINATE/HIGH LEVEL TAGS
                lesserTags = []
                greaterTags = []
                if workflowTagSet:
                    trumped = False
                else:
                    trumped = True

                for t in self.workflowTags:
                    if t == tag:
                        trumped = True
                    if t != tag:
                        if trumped:
                            lesserTags.append(t)

                        else:
                            greaterTags.append(t)

                # FOR DOCUMENT WITH THIS SYNC TAG
                filteredTasks = []
                if ("/%(tag)s/" % locals() in tp or "/%(etag)s/" % locals() in tp) and includeFileTags == True:
                    filteredTasks = doc.all_tasks()
                    for ft in filteredTasks:
                        trumped = False
                        for t in ft.tags:
                            if t in " ".join(greaterTags):
                                trumped = True
                        if not trumped:
                            for t in lesserTags:
                                ft.del_tag(t)
                            ft.add_tag(tag)
                elif not fileTagged:
                    filteredProjects = doc.tagged_projects(tag)
                    for p in filteredProjects:
                        allTasks = p.all_tasks()
                        for ft in filteredTasks:
                            trumped = False
                            for t in ft.tags:
                                if t in " ".join(greaterTags):
                                    trumped = True
                            if not trumped:
                                for t in lesserTags:
                                    ft.del_tag(t)
                                ft.add_tag(tag)
                    filteredTasks = doc.tagged_tasks(tag)
                for ft in filteredTasks:
                    if "done" not in "".join(ft.tags):
                        if "Project" in ft.parent.__repr__():
                            thisNote = tp + " > " + ft.parent.title[:-1]
                        else:
                            thisNote = tp
                        ft.add_note(thisNote)
                        content += ft.to_string() + "\n"

        self.log.info(
            'completed the ``_get_tagged_content_from_taskpaper_files`` method')
        return content