yukee1992 commited on
Commit
cf58c67
·
verified ·
1 Parent(s): dcc367c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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