Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -383,7 +383,7 @@ def format_ass_time(seconds: float) -> str:
|
|
| 383 |
return f"{hours}:{minutes:02d}:{int(secs):02d}.{centiseconds:02d}"
|
| 384 |
|
| 385 |
def wrap_text_for_ass(text: str, max_width: int, font_family: str, font_size: int) -> str:
|
| 386 |
-
"""Simple text wrapping for ASS (ASS uses \N for new line)"""
|
| 387 |
# This is a simplified version - estimates width based on character count
|
| 388 |
if max_width <= 0:
|
| 389 |
return text
|
|
|
|
| 383 |
return f"{hours}:{minutes:02d}:{int(secs):02d}.{centiseconds:02d}"
|
| 384 |
|
| 385 |
def wrap_text_for_ass(text: str, max_width: int, font_family: str, font_size: int) -> str:
|
| 386 |
+
"""Simple text wrapping for ASS (ASS uses \\N for new line)"""
|
| 387 |
# This is a simplified version - estimates width based on character count
|
| 388 |
if max_width <= 0:
|
| 389 |
return text
|