comparison src/plugins/plugin_misc_text_syntaxes.py @ 1458:832846fefe85

plugin text-syntaxes: minor variable renaming
author Goffi <goffi@goffi.org>
date Sun, 16 Aug 2015 00:06:59 +0200
parents 069ad98b360d
children 94901070478e
comparison
equal deleted inserted replaced
1457:2e43eb9d8167 1458:832846fefe85
164 if not STYLES_ACCEPTED_VALUE.match(value): 164 if not STYLES_ACCEPTED_VALUE.match(value):
165 continue 165 continue
166 if value == "none": 166 if value == "none":
167 continue 167 continue
168 cleaned_styles.append((key, value)) 168 cleaned_styles.append((key, value))
169 return "; ".join(["%s: %s" % (key, value) for key, value in cleaned_styles]) 169 return "; ".join(["%s: %s" % (key_, value_) for key_, value_ in cleaned_styles])
170 170
171 if isinstance(xhtml, basestring): 171 if isinstance(xhtml, basestring):
172 xhtml_elt = html.fromstring(xhtml) 172 xhtml_elt = html.fromstring(xhtml)
173 elif isinstance(xhtml, html.HtmlElement): 173 elif isinstance(xhtml, html.HtmlElement):
174 xhtml_elt = xhtml 174 xhtml_elt = xhtml