Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
topydo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
topydo
Commits
72a6da34
Commit
72a6da34
authored
Jun 01, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Metadata highlighting should be independent of the option highlight_projects_contexts.
Probably an indenting mistake.
parent
b67244fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
topydo/lib/PrettyPrinterFilter.py
topydo/lib/PrettyPrinterFilter.py
+3
-2
No files found.
topydo/lib/PrettyPrinterFilter.py
View file @
72a6da34
...
@@ -64,11 +64,12 @@ class PrettyPrinterColorFilter(PrettyPrinterFilter):
...
@@ -64,11 +64,12 @@ class PrettyPrinterColorFilter(PrettyPrinterFilter):
context_color
if
m
.
group
(
0
)[
0
]
==
"@"
context_color
if
m
.
group
(
0
)[
0
]
==
"@"
else
project_color
)
+
m
.
group
(
0
)
+
color
,
else
project_color
)
+
m
.
group
(
0
)
+
color
,
p_todo_str
)
p_todo_str
)
p_todo_str
=
re
.
sub
(
r'\b\
S+:[^/
\s]\
S+
\b'
,
metadata_color
+
r'\
g<
0>'
+
color
,
p_todo_str
)
p_todo_str
=
re
.
sub
(
r'\b\
S+:[^/
\s]\
S+
\b'
,
metadata_color
+
r'\
g<
0>'
+
color
,
p_todo_str
)
# add link_color to any valid URL specified outside of the tag.
# add link_color to any valid URL specified outside of the tag.
p_todo_str
=
re
.
sub
(
r'(^|\
s)(
\w+:){1}(//\
S+)
','
'+link_color+r'
\
2
\
3
'+color,p_todo_str)
p_todo_str
=
re
.
sub
(
r'(^|\
s)(
\w+:){1}(//\
S+)
','
'+link_color+r'
\
2
\
3
'+color,p_todo_str)
p_todo_str += NEUTRAL_COLOR
p_todo_str += NEUTRAL_COLOR
# chnge any group of reduntant multiple NEUTRAL_GROUP occurrence to only one
# ch
a
nge any group of reduntant multiple NEUTRAL_GROUP occurrence to only one
p_todo_str = re.sub(r'
(
'+re.escape(NEUTRAL_COLOR)+'
)
+
',NEUTRAL_COLOR,p_todo_str)
p_todo_str = re.sub(r'
(
'+re.escape(NEUTRAL_COLOR)+'
)
+
',NEUTRAL_COLOR,p_todo_str)
return p_todo_str
return p_todo_str
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment