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

Abierto
#17,049 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
54/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
csharp

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
C#
Estrellas
15.1k
Forks
1.4k
Merge medio
1 h 58 min
PR fusionados (30 d)
564

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de SubtitleEdit/subtitleedit

Todos los issues de SubtitleEdit/subtitleedit

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.