Skip to content

Commit 942d211

Browse files
committed
flake8 fix 2: E303 too many blank lines
1 parent 07dde84 commit 942d211

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

roundup/cgi/templating.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def _import_markdown2():
7070

7171
class Markdown(markdown2.Markdown):
7272
# don't allow disabled protocols in links
73-
_safe_protocols = re.compile('(?!' + ':|'.join([re.escape(s) for s in _disable_url_schemes]) + ':)', re.IGNORECASE)
73+
_safe_protocols = re.compile('(?!' + ':|'.join([
74+
re.escape(s) for s in _disable_url_schemes])
75+
+ ':)', re.IGNORECASE)
7476

7577
def _extras(config):
7678
extras = {'fenced-code-blocks': {}, 'nofollow': None}
@@ -939,10 +941,12 @@ def classhelp(self, properties=None, label=''"(list)", width='500',
939941
group, sort, pagesize, filter)
940942
onclick = "javascript:help_window('%s', '%s', '%s');return false;" % \
941943
(help_url, width, height)
942-
return '<a class="classhelp" data-helpurl="%s" data-width="%s" data-height="%s" href="%s" onclick="%s" %s>%s</a>' % \
943-
(help_url, width, height,
944-
help_url, onclick, self.cgi_escape_attrs(**html_kwargs),
945-
self._(label))
944+
return ('<a class="classhelp" data-helpurl="%s" '
945+
'data-width="%s" data-height="%s" href="%s" '
946+
'onclick="%s" %s>%s</a>') % (
947+
help_url, width, height,
948+
help_url, onclick, self.cgi_escape_attrs(**html_kwargs),
949+
self._(label))
946950

947951
def submit(self, label=''"Submit New Entry", action="new", html_kwargs={}):
948952
""" Generate a submit button (and action hidden element)
@@ -2334,7 +2338,8 @@ def popcal(self, width=300, height=200, label="(cal)",
23342338
date = ""
23352339

23362340
data_attr = {
2337-
"data-calurl": '%s?@template=calendar&amp;property=%s&amp;form=%s%s' % (self._classname, self._name, form, date),
2341+
"data-calurl": '%s?@template=calendar&amp;property=%s&amp;form=%s%s' % (
2342+
self._classname, self._name, form, date),
23382343
"data-width": width,
23392344
"data-height": height
23402345
}

0 commit comments

Comments
 (0)