Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removes trailing whitespace #5

Open
larsalv opened this issue Jan 23, 2016 · 0 comments
Open

removes trailing whitespace #5

larsalv opened this issue Jan 23, 2016 · 0 comments

Comments

@larsalv
Copy link

larsalv commented Jan 23, 2016

Using mwtemplates to remove templates it removes trailing whitespace and newlines.

template = mwtemplates.TemplateEditor(tekst_behandle)
    try:
         template.templates['Sports-reference'][0].remove()
    except IndexError:
         continue

resulting in: https://no.wikipedia.org/w/index.php?title=Mark_Javier&diff=prev&oldid=15698269

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant