Browse code

Handle style="solid".

From: Marius Gedminas <marius@gedmin.as>

Jose.R.Fonseca authored on 13/07/2008 03:20:26
Showing 1 changed files

  • xdot.py index f11917f..435371e 100755
... ...
@@ -475,8 +475,10 @@ class XDotAttrParser:
475 475
                 if style.startswith("setlinewidth("):
476 476
                     lw = style.split("(")[1].split(")")[0]
477 477
                     pen.linewidth = float(lw)
478
+                elif style == "solid":
479
+                    pen.dash = ()
478 480
                 elif style == "dashed":
479
-                    pen.dash = [6]       # 6pt on, 6pt off
481
+                    pen.dash = (6, )       # 6pt on, 6pt off
480 482
             elif op == "F":
481 483
                 pen.fontsize = s.read_float()
482 484
                 pen.fontname = s.read_text()