Usunięta treść Dodana treść
→‎Luckas.ot flag: nowa sekcja
PBbot (dyskusja | edycje)
m →‎Odp:Bot: <source> -> <syntaxhighlight>
Linia 7:
I have never run pywikipedia bot (my Olafbot uses Java), but is it really so hard to configure to give up immediately? Having a look at the source code, I found an interesting option in family.py:
 
<sourcesyntaxhighlight lang="python">
# String used as separator between interwiki links and the text
self.interwiki_text_separator = '\r\n\r\n'
</syntaxhighlight>
</source>
 
It is used in pywikibot/textlib.py and seems to be responsible for those annoying white lines.
I think, you should add in families/wiktionary_family.py someting like:
 
<sourcesyntaxhighlight lang="python">
self.interwiki_text_separator = ''
</syntaxhighlight>
</source>
 
or perhaps