From 42f8c71aa086580a9e68c10d8e1c30d7426f297d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Fri, 25 Aug 2023 21:28:53 +0200 Subject: [PATCH] stats.lua: remove dummy new lines from headers --- player/lua/stats.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 1938cf9e88..7515936b58 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -852,7 +852,7 @@ local function keybinding_info(after_scroll) local page = pages[o.key_page_4] eval_ass_formatting() add_header(header) - append(header, "", {prefix=o.nl .. page.desc .. ":", nl="", indent=""}) + append(header, "", {prefix=page.desc .. ":", nl="", indent=""}) if not kbinfo_lines or not after_scroll then kbinfo_lines = get_kbinfo_lines() @@ -874,7 +874,7 @@ local function perf_stats() eval_ass_formatting() add_header(stats) local page = pages[o.key_page_0] - append(stats, "", {prefix=o.nl .. o.nl .. page.desc .. ":", nl="", indent=""}) + append(stats, "", {prefix=page.desc .. ":", nl="", indent=""}) page.offset = append_general_perfdata(stats, page.offset) return table.concat(stats) end @@ -892,7 +892,7 @@ local function cache_stats() eval_ass_formatting() add_header(stats) - append(stats, "", {prefix=o.nl .. o.nl .. "Cache info:", nl="", indent=""}) + append(stats, "", {prefix="Cache info:", nl="", indent=""}) local info = mp.get_property_native("demuxer-cache-state") if info == nil then