Merge with Previous/Next Line Does Not Respect the Maximum Number of Lines

Aperta
#17,049 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
54/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp

Direzione di ricerca

Start by locating the SE5 commands for “Merge with line before (keep break)” and “Merge with next line,” then trace how each handles the profile’s maximum line limit. Compare their behavior with the SE4 “Merge with previous line” behavior described in the issue. Done means both merge directions respect the configured limit while preserving the no-extra-break behavior when the limit is 999.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The maximum number of lines is set to 2 in my profile.
However, when merging two subtitles (one containing two lines and the other containing one line), the resulting subtitle ends up with 3 lines (two line breaks). The same issue occurs in other combinations.

A video demonstrating the issue is attached.

This problem has persisted since the early versions of SE5.

In the video, the "Merge with line before (keep break)" shortcut is used (F1).

In SE4, "Merge with previous line" was a separate command from "Merge with line before (keep break)" in SE5.

When using the former in SE4, the maximum number of lines setting was respected:

  • If the selected profile had a maximum line limit, an additional line break was inserted when necessary.
  • If the selected profile had the maximum number of lines set to 999, no additional line break was inserted.

The same issue occurs when using "Merge with next line" as well.

Could this behaviour be restored in SE5?

https://github.com/user-attachments/assets/82b672f5-14ee-4451-8528-646371769203

Lingua principale
C#
Stelle
15.1k
Fork
1.4k
Merge medio
1h 58m
PR unite (30g)
564

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di SubtitleEdit/subtitleedit

Tutte le issue di SubtitleEdit/subtitleedit

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.