TaskViewer, Editor: added code to mark a line as not containing a task with '__NO-TASK__'.

Sun, 09 Sep 2018 13:13:34 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 09 Sep 2018 13:13:34 +0200
changeset 6493
b64d6d0b4175
parent 6491
a6c4169e7983
child 6494
72e3d61e5a20

TaskViewer, Editor: added code to mark a line as not containing a task with '__NO-TASK__'.

QScintilla/Editor.py file | annotate | diff | comparison | revisions
Tasks/TaskViewer.py file | annotate | diff | comparison | revisions
changelog file | annotate | diff | comparison | revisions
--- a/QScintilla/Editor.py	Sat Sep 01 17:54:47 2018 +0200
+++ b/QScintilla/Editor.py	Sun Sep 09 13:13:34 2018 +0200
@@ -2626,6 +2626,10 @@
             lineIndex += 1
             shouldBreak = False
             
+            if line.endswith("__NO-TASK__"):
+                # ignore potential task marker
+                continue
+            
             for taskType, taskMarkers in markers.items():
                 for taskMarker in taskMarkers:
                     index = line.find(taskMarker)
--- a/Tasks/TaskViewer.py	Sat Sep 01 17:54:47 2018 +0200
+++ b/Tasks/TaskViewer.py	Sun Sep 09 13:13:34 2018 +0200
@@ -854,6 +854,10 @@
                 lineIndex += 1
                 found = False
                 
+                if line.endswith("__NO-TASK__"):
+                    # ignore potential task marker
+                    continue
+                
                 for taskType, taskMarkers in markers.items():
                     for taskMarker in taskMarkers:
                         index = line.find(taskMarker)
--- a/changelog	Sat Sep 01 17:54:47 2018 +0200
+++ b/changelog	Sun Sep 09 13:13:34 2018 +0200
@@ -1,5 +1,10 @@
 Change Log
 ----------
+Version 18.10:
+- bug fixes
+- Tasks
+  -- added code to mark a line as not containing a task with '__NO-TASK__'
+
 Version 18.09:
 - bug fixes
 - Mercurial Interface

eric ide

mercurial