Skip to content

Commit

Permalink
only ignore shape when it is none, prevent g2d output in spec test
Browse files Browse the repository at this point in the history
  • Loading branch information
hbmartin committed Oct 8, 2024
1 parent 9f2d07b commit fbcb7c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion graphviz2drawio/mx/GraphObj.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_blacklist_attrs = ["fill", "shape"]
_blacklist_attrs = ["fill"]


class GraphObj:
Expand All @@ -15,4 +15,6 @@ def enrich_from_graph(self, attrs: dict | None) -> None:
continue
if k in _blacklist_attrs:
continue
if k == "shape" and v == "none":
continue
self.__setattr__(k, v)
4 changes: 2 additions & 2 deletions test_specs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ process_files() {
rel_path="${file#$src_dir/}"
output_file="$out_dir/${rel_path%.gv.txt}.xml"
mkdir -p "$(dirname "$output_file")"
python3 -m graphviz2drawio "$file" -o "$output_file"
echo "Processed: $file -> $output_file"
python3 -m graphviz2drawio "$file" -o "$output_file" > /dev/null 2>&1
echo "Processed: $file -> $output_file ($?)"
done
}

Expand Down

0 comments on commit fbcb7c4

Please sign in to comment.