[Pywikipedia-svn] SVN: [7236] trunk/pywikipedia/noreferences.py
filnik at svn.wikimedia.org
filnik at svn.wikimedia.org
Sun Sep 13 10:30:43 UTC 2009
Revision: 7236
Author: filnik
Date: 2009-09-13 10:30:43 +0000 (Sun, 13 Sep 2009)
Log Message:
-----------
Bugfix by xqt, patch: #2549711
Modified Paths:
--------------
trunk/pywikipedia/noreferences.py
Modified: trunk/pywikipedia/noreferences.py
===================================================================
--- trunk/pywikipedia/noreferences.py 2009-09-13 10:27:15 UTC (rev 7235)
+++ trunk/pywikipedia/noreferences.py 2009-09-13 10:30:43 UTC (rev 7236)
@@ -320,7 +320,7 @@
try:
self.referencesText = referencesSubstitute[wikipedia.getSite().family.name][wikipedia.getSite().lang]
except KeyError:
- self.referencesText = u'<references/>'
+ self.referencesText = u'<references />'
def lacksReferences(self, text, verbose = True):
"""
@@ -417,7 +417,7 @@
return self.createReferenceSection(oldText, index)
def createReferenceSection(self, oldText, index, ident = '=='):
- newSection = u'\n%s %s %s\n\n%s\n' % (ident, wikipedia.translate(self.site, referencesSections)[0], ident, self.referencesText)
+ newSection = u'\n%s %s %s\n%s\n' % (ident, wikipedia.translate(self.site, referencesSections)[0], ident, self.referencesText)
return oldText[:index] + newSection + oldText[index:]
def save(self, page, newText):
More information about the Pywikipedia-svn
mailing list