diff --git a/wrap/python/ajax/spot.in b/wrap/python/ajax/spot.in index 93bddd601..580e9c1a8 100755 --- a/wrap/python/ajax/spot.in +++ b/wrap/python/ajax/spot.in @@ -67,10 +67,14 @@ elif script: dot = '@DOT@' dot_bgcolor = '-Gbgcolor=#FFFFFF00' -svg_output = False # FIXME: SVG output seems to be working well with - # Firefox only. We have to figure out how - # to get the correct size and transparent - # background in Chrome. +svg_output = False # SVG output used to working well with Firefox + # only. It now seems to work with recent Chrome + # versions as well, but it is still a problem with + # Safari, and IE. +output_both = True # Create both PNG and SVG. If svg_output is False, + # the SVG will be given as a link under the PNG. + # Otherwise the PNG is used as alternate contents + # for the SVG object. if not script: # If this is not run as a cgi script, let's start an HTTP server. @@ -217,29 +221,40 @@ better to install Spot on your own computer.
\n""") def reset_alarm(): signal.alarm(30) -def render_dot(basename): - unbufprint('
'
+
if svg_output:
- unbufprint('')
+ unbufprint('' + '