Commit 3edcf88f authored by Carsten Emde's avatar Carsten Emde
Browse files

Added white space before and after line labels in the 'gv' output to

prevent them from being placed too close to each other
parent 41cca913
......@@ -225,7 +225,7 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
elf_to_placeholder[filename], elf_to_placeholder[fl]))
elif outputformat == 'gv':
if forcesymbols:
outputfileopen.write(" %s -> %s [label=\"links with\" tooltip=\"%s -> %s\"];" % (elf_to_placeholder[filename], elf_to_placeholder[fl], filename, fl))
outputfileopen.write(" %s -> %s [label=\" links with \" tooltip=\"%s -> %s\"];" % (elf_to_placeholder[filename], elf_to_placeholder[fl], filename, fl))
else:
outputfileopen.write(" %s -> %s;" % (elf_to_placeholder[filename], elf_to_placeholder[fl]))
elif outputformat == 'text':
......@@ -335,7 +335,7 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
outputfileopen.write("<edge source=\"%s\" target=\"%s\" label=\"exports\"/>" % (elf_to_placeholder[filename],
symbol_to_placeholder[(exp['name'], exp['type'])]))
elif outputformat == 'gv':
outputfileopen.write(" %s -> %s [label=\"exports\" tooltip=\"%s -> %s (%s)\"];" % (elf_to_placeholder[filename],
outputfileopen.write(" %s -> %s [label=\" exports \" tooltip=\"%s -> %s (%s)\"];" % (elf_to_placeholder[filename],
symbol_to_placeholder[(exp['name'], exp['type'])], filename, exp['name'], exp['type']))
elif outputformat == 'text':
outputfileopen.write("%s EXPORTS %s" % (filename, exp['name']))
......@@ -377,8 +377,9 @@ def createoutput(outputdir, outputformat, machine_to_binary, linked_libraries,
outputfileopen.write("<edge source=\"%s\" target=\"%s\" label=\"%s\"/>" % (elf_to_placeholder[filename],
symbol_to_placeholder[(imp['name'], imp['type'])], usage.lower()))
elif outputformat == 'gv':
gvusage = " " + usage.lower() + " "
outputfileopen.write(" %s -> %s [label=\"%s\" tooltip=\"%s -> %s (%s)\"];" % (elf_to_placeholder[filename],
symbol_to_placeholder[(imp['name'], imp['type'])], usage.lower(), filename, imp['name'], imp['type']))
symbol_to_placeholder[(imp['name'], imp['type'])], gvusage, filename, imp['name'], imp['type']))
elif outputformat == 'text':
outputfileopen.write("%s %s %s" % (filename, usage, imp['name']))
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment