mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
fix PEP8 "E302 expected 1 blank lines, found 0"
This commit is contained in:
parent
3f4f7a544b
commit
69989d4758
2 changed files with 7 additions and 0 deletions
|
|
@ -218,8 +218,10 @@ class DescriptionFormatter:
|
|||
text_wiki = ''
|
||||
text_html = ''
|
||||
linkResolver = None
|
||||
|
||||
def __init__(self, linkres):
|
||||
self.linkResolver = linkres
|
||||
|
||||
def endcur(self, notstates=None):
|
||||
if notstates and self.state in notstates:
|
||||
return
|
||||
|
|
@ -229,13 +231,16 @@ class DescriptionFormatter:
|
|||
self.endul()
|
||||
elif self.state == self.stOL:
|
||||
self.endol()
|
||||
|
||||
def endpara(self):
|
||||
self.text_plain += '\n'
|
||||
self.text_html += '</p>'
|
||||
self.state = self.stNONE
|
||||
|
||||
def endul(self):
|
||||
self.text_html += '</ul>'
|
||||
self.state = self.stNONE
|
||||
|
||||
def endol(self):
|
||||
self.text_html += '</ol>'
|
||||
self.state = self.stNONE
|
||||
|
|
|
|||
|
|
@ -610,6 +610,7 @@ def make_index(apps, apks, repodir, archive, categories):
|
|||
el = doc.createElement(name)
|
||||
el.appendChild(doc.createTextNode(value))
|
||||
parent.appendChild(el)
|
||||
|
||||
def addElementCDATA(name, value, doc, parent):
|
||||
el = doc.createElement(name)
|
||||
el.appendChild(doc.createCDATASection(value))
|
||||
|
|
@ -696,6 +697,7 @@ def make_index(apps, apks, repodir, archive, categories):
|
|||
addElement('summary', app['Summary'], doc, apel)
|
||||
if app['icon']:
|
||||
addElement('icon', app['icon'], doc, apel)
|
||||
|
||||
def linkres(link):
|
||||
for app in apps:
|
||||
if app['id'] == link:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue