Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
senf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wiback
senf
Commits
7537db67
Commit
7537db67
authored
17 years ago
by
g0dil
Browse files
Options
Downloads
Patches
Plain Diff
Add helper to wrap long (template) class labels in dot graphs
parent
f5c40d39
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
doclib/Doxyfile.global
+6
-3
6 additions, 3 deletions
doclib/Doxyfile.global
doclib/dot
+5
-0
5 additions, 0 deletions
doclib/dot
doclib/dot-munge.pl
+30
-0
30 additions, 0 deletions
doclib/dot-munge.pl
with
41 additions
and
3 deletions
doclib/Doxyfile.global
+
6
−
3
View file @
7537db67
...
...
@@ -36,13 +36,16 @@ GENERATE_XML = YES
HAVE_DOT = YES
CLASS_GRAPH = YES
COLLABORATION_GRAPH =
YES
TEMPLATE_RELATIONS =
YES
COLLABORATION_GRAPH =
NO
TEMPLATE_RELATIONS =
NO
INCLUDE_GRAPH = YES
INCLUDED_BY_GRAPH = YES
GROUP_GRAPHS = NO
MAX_DOT_GRAPH_WIDTH = 800
MAX_DOT_GRAPH_HEIGHT = 1
2
00
MAX_DOT_GRAPH_HEIGHT = 1
6
00
MAX_DOT_GRAPH_DEPTH = 3
DOT_MULTI_TARGETS = YES
DOT_CLEANUP = NO
DOT_PATH = "$(TOPDIR)/doclib"
@INCLUDE = "$(TOPDIR)/Doxyfile.local"
This diff is collapsed.
Click to expand it.
doclib/dot
0 → 100755
+
5
−
0
View file @
7537db67
#!/bin/sh
topdir
=
"
`
dirname
"
$0
"
`
"
;
topdir
=
"
`
cd
"
$topdir
/.."
;
pwd
`
"
"
$topdir
/doclib/dot-munge.pl"
"
$1
"
exec
dot
"
$@
"
This diff is collapsed.
Click to expand it.
doclib/dot-munge.pl
0 → 100755
+
30
−
0
View file @
7537db67
#!/usr/bin/perl -i -n
# Reduce font size
s/fontsize=10/fontsize=8/g
;
# Wrap long labels (templates)
if
(
/label=\"([^"]*)\"/
)
{
#"])){ # To make emacs happy ...
$pre
=
$`
;
$post
=
$'
;
#' # To make emacs happy ...
$label
=
$
1
;
# Break at each komma
$label
=~
s/,/,\\r\\ \\ \\ \\ \\ \\ \\ \\ /g
;
# If more than one '<' is in the label, break after each '<'
if
((
$label
=~
tr/</</
)
>
1
)
{
$label
=~
s/</<\\r\\ \\ \\ \\ \\ \\ \\ \\ /g
;
}
# If at least one break is in there ...
if
(
$label
=~
/\\r/
)
{
# Make last line flush right
$label
.=
"
\\
r
";
# and first line flush left
$label
=~
s/\\r/\\l/
;
}
print
"
${pre}
label=
\"
${label}
\"
${post}
";
}
else
{
print
;
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment