Page MenuHomePhabricator

Empty paragraphs in source article
Open, MediumPublicBUG REPORT

Assigned To
None
Authored By
• Petar.petkovic
Jul 25 2018, 12:08 PM
Referenced Files
F30199919: image.png
Sep 2 2019, 10:39 PM
F26209943: image.png
Sep 26 2018, 10:27 AM
F25525581: Screen Shot 2018-08-30 at 09.40.24.png
Aug 30 2018, 2:01 PM
F24145480: cx-empty-paragraph.png
Jul 26 2018, 10:25 AM
F24093665: cx1-starts-with-empty-paragraph.png
Jul 25 2018, 12:08 PM
F24090168: cx2-starts-with-empty-paragraph.png
Jul 25 2018, 12:08 PM

Description

There are plenty of examples with empty paragraphs in source article. Especially opening paragraphs are susceptible to this problem, since they tend to contain some formatting templates and metadata. One template in particular I've seen problematic is Use dmy dates. Keywords like __TOC__ are causing problems as well.

Template:Use_dmy_dates causes empty sectionUsage of __TOC__ causes empty section
cx2-starts-with-empty-paragraph.png (1,174×465 px, 44 KB)
image.png (1,942×1,038 px, 211 KB)

Event Timeline

Empty paragraphs are popping up in other places too, not only on the start of translation:

cx-empty-paragraph.png (1,182×943 px, 73 KB)

Restricted Application changed the subtype of this task from "Deadline" to "Task". · View Herald TranscriptAug 30 2018, 8:43 AM

Found another instance when translating "Jony Ive" from English to Catalan:

Screen Shot 2018-08-30 at 09.40.24.png (869×378 px, 35 KB)

Inspecting the HTML markup https://en.wikipedia.org/api/rest_v1/page/html/Jony_Ive shows:

image.png (1,212×224 px, 47 KB)

The first paragraph with id mwAg has two templates, both are removed by cxserver since they are irrelevant to translation. When they are removed, the paragraph remains. before the infobox table. Can be fixed in cxserver by adding an extra check for block level tags for empty content. But care should be taken to avoid removing anything unintentionally.

• Petar.petkovic renamed this task from Some articles start with empty paragraph to Empty paragraphs in source article.Sep 2 2019, 10:39 PM
• Petar.petkovic updated the task description. (Show Details)
Nikerabbit changed the subtype of this task from "Task" to "Bug Report".