added \t to str
This commit is contained in:
@@ -99,7 +99,7 @@ class Transcript:
|
|||||||
sseg = time.strftime("%H:%M:%S",time.gmtime(segm[0]))
|
sseg = time.strftime("%H:%M:%S",time.gmtime(segm[0]))
|
||||||
eseg = time.strftime("%H:%M:%S",time.gmtime(segm[1]))
|
eseg = time.strftime("%H:%M:%S",time.gmtime(segm[1]))
|
||||||
|
|
||||||
fstring += f"{speaker} ({sseg} ; {eseg}): {seq['text']}\n"
|
fstring += f"{speaker} ({sseg} ; {eseg}):\t{seq['text']}\n"
|
||||||
return fstring
|
return fstring
|
||||||
|
|
||||||
def __repr__(self) -> str:
|
def __repr__(self) -> str:
|
||||||
@@ -128,7 +128,7 @@ class Transcript:
|
|||||||
:rtype: str
|
:rtype: str
|
||||||
"""
|
"""
|
||||||
if "indent" not in kwargs:
|
if "indent" not in kwargs:
|
||||||
kwargs["indent"] = 4
|
kwargs["indent"] = 3
|
||||||
return json.dumps(self.transcript, *args, **kwargs)
|
return json.dumps(self.transcript, *args, **kwargs)
|
||||||
|
|
||||||
def get_html(self) -> str:
|
def get_html(self) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user