bcoe / wikifetch

Uses jQuery to return a structured JSON representation of a Wikipedia article.
127 stars 12 forks source link

Wrong concatenation of paragraphs #3

Open kepler opened 9 years ago

kepler commented 9 years ago

Because of this line in wikifetch.js:91

parsedArticle.sections[currentHeadline].text += element.text();

consecutive paragraphs get glued together, i.e., a blank space is missing between the last token of the last sentence of a paragraph and the first token of the first sentence of the following paragraph.

greydoubt commented 6 months ago

Please review https://github.com/bcoe/wikifetch/pull/4 for possible fix