Hello! I have been using replace.py to delete obsolete lines inside templates, but now I have some empty lines. I can't find a way to delete them... can someone help with this? Thanks!
Topic on Manual talk:Pywikibot
Deleting blank lines with replace.py inside templates
Please share more information: What is your regex, what does your input look like, what do you expect?
Look for example to the source code here: https://eu.wikipedia.org/wiki/Acantholytoceras. I'm trying to change
/n/n, and it looks like I can delete some lines, but evidently not all of them.
Don't you want to replace it with a single newline
\n? The problem I can see is that there were some spaces between the newlines, which you can fix with
\n *\n *\n.
Thanks for the clue! Is there any other script to delete blank lines only inside templates?
None that I know.