merge_styles.py revision aee79fe7a05c9b284916f2f75c2f57c88444e675
# Copyright (C) 2014 Martin Owens # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Merges styles into class based styles and removes. """Controls the style/css mechanics for this effect""" """Removes any elements that aren't the same using a weighted threshold""" """Returns an iter for each added element who's style matches this style""" """Not equals, prefer to overload 'in' but that doesn't seem possible""" # Reorder to make the style element FIRST help=
"Name of selected element's common class")
raise KeyError(
"There are no common styles between these elements.")