From cd115f6f558190a8f07a219a2288316305f066b2 Mon Sep 17 00:00:00 2001 From: niksedk Date: Tue, 8 Mar 2022 18:35:59 +0100 Subject: [PATCH] Work on export --- src/ui/Forms/ExportCustomTextFormat.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/ui/Forms/ExportCustomTextFormat.cs b/src/ui/Forms/ExportCustomTextFormat.cs index a777c7d0b..02ad45ae0 100644 --- a/src/ui/Forms/ExportCustomTextFormat.cs +++ b/src/ui/Forms/ExportCustomTextFormat.cs @@ -395,13 +395,13 @@ namespace Nikse.SubtitleEdit.Forms var s = template; s = s.Replace("{{", "@@@@_@@@{"); s = s.Replace("}}", "}@@@_@@@@"); - s = string.Format(s, start, end, text, translation, number + 1, number, d, actor, line1, line2, - cps.ToString(CultureInfo.InvariantCulture).Replace(".", ","), - cps.ToString(CultureInfo.InvariantCulture), - text.Length, - p.Text.RemoveChar('\r','\n').Length, - p.Text.RemoveChar('\r', '\n').Length + lines.Count -1, - p.Text.RemoveChar('\r', '\n').Length + lines.Count - 1); + s = string.Format(s, start, end, text, translation, number + 1, number, d, actor, line1, line2, + cps.ToString(CultureInfo.InvariantCulture).Replace(".", ","), + cps.ToString(CultureInfo.InvariantCulture), + text.Length, + p.Text.RemoveChar('\r', '\n').Length, + p.Text.RemoveChar('\r', '\n').Length + lines.Count - 1, + p.Text.RemoveChar('\r', '\n').Length + (lines.Count - 1) * 2); s = s.Replace("@@@@_@@@", "{"); s = s.Replace("@@@_@@@@", "}"); return s;