Page MenuHomePhabricator

LinguaLibreBot: add new line at the end of the record list
Open, MediumPublicBUG REPORT

Description

Original report by Unsui on Meta.

Steps to Reproduce:

  • To be investigated

Actual Results:
See this erroneous edit : https://fr.wiktionary.org/w/index.php?title=suflet&diff=29232419&oldid=28691805
There are maybe more.

Expected Results:
TBD

Event Timeline

Poslovitch created this task.

I tried to reproduce the problem. To do so,

  1. I saved the revision of the page just before LLbot action
  2. I forced to take this wikitext in frwiktionary.py
  3. I run llbot only on this item `python3 llbot.py --wiki frwiktionary --dryrun simple --item Q491621```
  4. The output is the one that we see in the frwiktionary diff. Here is the wikicode that I get with the current version of Lingua Libre Bot
...
=== {{S|nom|pl}} ===
'''suflet '''
# [[soufflé|Soufflé]].

==== {{S|synonymes}} ====


=== {{S|prononciation}} ===
* {{écouter|lang=pl|Pologne (Varsovie)||audio=LL-Q809 (pol)-Olaf-suflet.wav}}== {{langue|ro}} ==
=== {{S|étymologie}} ===
: Du {{étyl|la|ro}} [[suflitus]], [[suflare]] ([[souffle]]).
...

I can share the reproducer on a new branch on Github if it is useful.

Lepticed7 renamed this task from Investigate erroneous editions on frwikt to Add new line at the end of the record list.Sep 15 2021, 10:33 AM
Lepticed7 added a subscriber: Lepticed7.

This bug come from the fact that == {{langue|ro}} == is at the end of the last record, instead of on a new line.

In line 261 of frwiktionary, there are a piece of code supposed to add two new lines. It looks like this doesn’t work.

Yug raised the priority of this task from High to Needs Triage.Jul 6 2022, 1:02 PM

@Lepticed7 do you know the status of this issue ?

Yug renamed this task from Add new line at the end of the record list to LinguaLibreBot: add new line at the end of the record list.Tue, Jul 19, 5:43 PM
Yug triaged this task as Medium priority.