From 3e9cc045eb0f4d5bb9ebfb7b869924641e57e768 Mon Sep 17 00:00:00 2001 From: Paul Franklin Date: Wed, 4 Jul 2012 16:11:51 +0000 Subject: [PATCH] 5734: have one style file for dual-named reports svn: r19948 --- src/gen/plug/report/_options.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gen/plug/report/_options.py b/src/gen/plug/report/_options.py index d12c6fbb2..277d496f8 100644 --- a/src/gen/plug/report/_options.py +++ b/src/gen/plug/report/_options.py @@ -657,7 +657,9 @@ class OptionHandler(_options.OptionHandler): def get_stylesheet_savefile(self): """Where to save user defined styles for this report.""" - filename = "%s.xml" % self.module_name + # Get the first part of name, if it contains a comma: + # (will just be module_name, if no comma) + filename = "%s.xml" % self.module_name.split(",")[0] return os.path.join(HOME_DIR, filename) def get_default_stylesheet_name(self):