Modify

Opened 5 years ago

Closed 3 years ago

Last modified 3 years ago

#6169 closed defect (fixed)

Duplicated line in the last section

Reported by: y.yu@… Owned by: rjollos
Priority: normal Component: SectionEditPlugin
Severity: normal Keywords:
Cc: shai Trac Release: 0.11

Description (last modified by rjollos)

when editing the last section, ending with a macro such as [[TicketQuery]] or a code block such as {{{ ... }}}, a duplication of the committed line appears.

Attachments (0)

Change History (11)

comment:1 Changed 5 years ago by rjollos

I have noticed this as well, but I thought it might be due to the patch in #4848. Have you installed that patch?

comment:2 Changed 5 years ago by anonymous

No I haven't used the patch in #4848

comment:3 Changed 4 years ago by pololita

I had the same problem. I installed the plugin today, without adding the patch in #4848. However, lines of code added by the patch are in the file I installed web_ui.py. I commented those lines, I installed it again, and the problem disappeared. Although .. I missed the preview section instead of the whole page =(

comment:4 Changed 4 years ago by rjollos

  • Description modified (diff)

comment:5 Changed 4 years ago by rjollos

#7827 closed as a duplicate.

comment:8 follow-up: Changed 4 years ago by shai

@rjollos can you remove my email from this ticket? I didn't realize that having my CC would show my email to everyone. How does one get notifications on this ticket without disclosing his email?

comment:9 in reply to: ↑ 8 Changed 4 years ago by rjollos

  • Cc shai added; anonymous removed

Replying to shai:

@rjollos can you remove my email from this ticket? I didn't realize that having my CC would show my email to everyone. How does one get notifications on this ticket without disclosing his email?

Done. Just cc your t-h.o username, as I did here.

comment:10 Changed 4 years ago by shai

Agreed. Thank mate.

comment:11 Changed 3 years ago by rjollos

  • Description modified (diff)
  • Owner changed from cbalan to rjollos
  • Priority changed from highest to normal
  • Status changed from new to assigned

comment:10 Changed 3 years ago by rjollos

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [11203]) Fixes #6169: (0.2.5) FIX: If the last section was being edited, the last line would be duplicated.

comment:11 Changed 3 years ago by rjollos

  • Severity changed from major to normal

The problem didn't seem to have anything to do with the patch in #4848 or the markup of the last line. What I saw is that when the for loop ran to completion, the assignment post = page_list[i:] would result in assigning the last line to post, even though it had already been assigned to target.

Please test out the latest 0.12 branch and report back if you can. The 0.11 branch will be merged into 0.12 soon.

Add Comment

Modify Ticket

Action
as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.