Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libcaml-grew
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
7
Issues
7
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
grew
libcaml-grew
Commits
a28f73ea
Commit
a28f73ea
authored
Dec 06, 2018
by
Bruno Guillaume
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
colors in dot
parent
7d1027c2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/grew_domain.ml
src/grew_domain.ml
+1
-1
src/grew_fs.ml
src/grew_fs.ml
+2
-2
No files found.
src/grew_domain.ml
View file @
a28f73ea
...
...
@@ -111,7 +111,7 @@ module Label_domain = struct
|
Dash
->
[
"style=dashed"
]
|
Solid
->
[]
)
in
let
label
=
match
(
deco
,
style
.
bgcolor
)
with
|
(
true
,
_
)
->
sprintf
"<<TABLE BORDER=
\"
0
\"
CELLBORDER=
\"
0
\"
> <TR> <TD BGCOLOR=
\"
green
\"
>%s</TD> </TR> </TABLE>>"
style
.
text
|
(
true
,
_
)
->
sprintf
"<<TABLE BORDER=
\"
0
\"
CELLBORDER=
\"
0
\"
> <TR> <TD BGCOLOR=
\"
#00FF00
\"
>%s</TD> </TR> </TABLE>>"
style
.
text
|
(
false
,
Some
c
)
->
sprintf
"<<TABLE BORDER=
\"
0
\"
CELLBORDER=
\"
0
\"
> <TR> <TD BGCOLOR=
\"
%s
\"
>%s</TD> </TR> </TABLE>>"
c
style
.
text
|
_
->
sprintf
"
\"
%s
\"
"
style
.
text
in
sprintf
"[label=%s, %s]"
label
(
String
.
concat
", "
dot_items
)
...
...
src/grew_fs.ml
View file @
a28f73ea
...
...
@@ -277,14 +277,14 @@ module G_fs = struct
let
buff
=
Buffer
.
create
32
in
let
()
=
match
pid_name
with
|
""
->
()
|
pid
->
bprintf
buff
"<TR><TD COLSPAN=
\"
3
\"
BGCOLOR=
\"
green
\"
><B>[%s]</B></TD></TR>
\n
"
pid
in
|
pid
->
bprintf
buff
"<TR><TD COLSPAN=
\"
3
\"
BGCOLOR=
\"
#00FF00
\"
><B>[%s]</B></TD></TR>
\n
"
pid
in
let
next
=
match
get_main
?
main_feat
t
with
|
(
None
,
sub
)
->
sub
|
(
Some
(
feat_name
,
atom
)
,
sub
)
->
if
is_highlithed
feat_name
then
bprintf
buff
"<TR><TD COLSPAN=
\"
3
\"
BGCOLOR=
\"
green
\"
><B>%s</B></TD></TR>
\n
"
(
string_of_value
atom
)
then
bprintf
buff
"<TR><TD COLSPAN=
\"
3
\"
BGCOLOR=
\"
#00FF00
\"
><B>%s</B></TD></TR>
\n
"
(
string_of_value
atom
)
else
bprintf
buff
"<TR><TD COLSPAN=
\"
3
\"
><B>%s</B></TD></TR>
\n
"
(
string_of_value
atom
);
sub
in
let
next
=
List
.
sort
G_feature
.
print_cmp
next
in
...
...
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