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
968c4dc0
Commit
968c4dc0
authored
Dec 03, 2015
by
Bram Schoenmakers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some style improvements.
parent
7579a315
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
topydo/lib/DotPrinter.py
topydo/lib/DotPrinter.py
+3
-3
No files found.
topydo/lib/DotPrinter.py
View file @
968c4dc0
...
...
@@ -44,10 +44,10 @@ class DotPrinter(Printer):
"""
Prints an HTML table for a node label with some todo details.
"""
node_result
=
'<<TABLE CELLBORDER="0">'
node_result
=
'<<TABLE CELLBORDER="0"
CELLSPACING="1" VALIGN="top"
>'
def
print_row
(
p_value1
,
p_value2
):
return
'<TR><TD ALIGN="
LEF
T">{}</TD><TD ALIGN="LEFT">{}</TD></TR>'
.
format
(
p_value1
,
p_value2
)
return
'<TR><TD ALIGN="
RIGH
T">{}</TD><TD ALIGN="LEFT">{}</TD></TR>'
.
format
(
p_value1
,
p_value2
)
node_result
+=
'<TR><TD><B>{}</B></TD><TD BALIGN="LEFT"><B>{}{}{}</B></TD></TR>'
.
format
(
self
.
todolist
.
number
(
p_todo
),
...
...
@@ -85,7 +85,7 @@ class DotPrinter(Printer):
node_name
=
lambda
t
:
'_'
+
str
(
self
.
todolist
.
number
(
t
))
result
=
'digraph topydo {
\
n
'
result
+=
'node [ shape=
plaintext
]
\
n
'
;
result
+=
'node [ shape=
"none" margin="0" fontsize="9" fontname="Helvetica"
]
\
n
'
;
# print todos
for
todo
in
p_todos
:
...
...
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