Merge branch 'fs#141-place-notice-after-comment' into develop
This commit is contained in:
@@ -236,6 +236,7 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
|||||||
mwparser.nodes.comment.Comment ):
|
mwparser.nodes.comment.Comment ):
|
||||||
|
|
||||||
insert_after_index += 1
|
insert_after_index += 1
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
self.current_wikicode.insert_after(
|
self.current_wikicode.insert_after(
|
||||||
@@ -249,6 +250,9 @@ class MarkPagesBot( CurrentPageBot ): # sets 'current_page' on each treat()
|
|||||||
else:
|
else:
|
||||||
self.current_wikicode.insert( 0, self.disc_notice )
|
self.current_wikicode.insert( 0, self.disc_notice )
|
||||||
|
|
||||||
|
# To have it in its own line we need to add a linbreak after it
|
||||||
|
self.current_wikicode.insert_after(self.disc_notice, "\n" )
|
||||||
|
|
||||||
# If there is no leadsec (and therefore no template in it, we will add
|
# If there is no leadsec (and therefore no template in it, we will add
|
||||||
# before the first element
|
# before the first element
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user