Merge branch 'fs#141-place-notice-after-comment' into develop
This commit is contained in:
@@ -26,6 +26,7 @@ Bot to mark pages which were/are subjects of redundance discussions
|
|||||||
with templates
|
with templates
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
import re
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
import pywikibot
|
import pywikibot
|
||||||
@@ -225,8 +226,8 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
|||||||
# Filter one linebreak
|
# Filter one linebreak
|
||||||
if isinstance( self.current_wikicode.get(
|
if isinstance( self.current_wikicode.get(
|
||||||
insert_after_index + 1), mwparser.nodes.text.Text ) and \
|
insert_after_index + 1), mwparser.nodes.text.Text ) and \
|
||||||
self.current_wikicode.get(
|
re.search( r"^\n\s+$", self.current_wikicode.get(
|
||||||
insert_after_index + 1 ).value is "\n":
|
insert_after_index + 1 ).value ):
|
||||||
|
|
||||||
insert_after_index += 1
|
insert_after_index += 1
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user