Page MenuHomePhabricator

Add new line at the end of the record list
Open, HighPublicBUG 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.Wed, Sep 15, 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.