-
Notifications
You must be signed in to change notification settings - Fork 3
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
TooManyHeadings error on otherwise legit-looking page #16
Comments
A simple mwparserfromhell script seems to work fine:
|
This is really strange! This script works for me:
however, this does not work:
Using the file pointer rather than the text matters? |
Yeah, I can repro that. When passed as a string, one of the sections has multiple headings |
I think this is an issue to raise with |
It looks like the issue in |
I've hand-fixed that archive page for now. |
Python ignoramus here; is this also the reason I'm getting a TooManyHeadings problem on https://en.wikipedia.org/wiki/Talk:Rhaetian_Railway ? |
Yeah, there is a pretty good chance that this is the issue. I will look more into this specific case tomorrow. It is just the current revision that causes the issue, correct? |
I mean, I haven't tried past revisions, so... |
@Ironholds, I am not able to reproduce your issue with current version of that talk page. Could you post a file containing the input that throws the error? |
Okay, found an example; https://www.dropbox.com/s/kq3sjxzyu7j3h4i/article_talk_15585692.wikitext?dl=0 |
On https://en.wikipedia.org/wiki/Wikipedia:Teahouse/Questions/Archive_235#How_to_link_any_file_like_video_or_picture.2C_on_wikipedia.27s_article.3F I get a
TooManyHeadings
error. Removing sections titled== How to link any file like video or picture, on wikipedia's article? ==
or any of the two ones succeeding it fixes this issue.It looks like the wikicode section being received is not properly split?
The text was updated successfully, but these errors were encountered: