From f22361727edb84ad22f39d73fe1293f516267f39 Mon Sep 17 00:00:00 2001 From: Julian Date: Fri, 31 Jul 2015 12:52:37 +0200 Subject: [PATCH] stats: fix line wrapping These spaces were not displayed on screen, however they were taken into account for line wrapping. --- player/lua/stats.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/player/lua/stats.lua b/player/lua/stats.lua index 88cea0adea..f844d214f8 100644 --- a/player/lua/stats.lua +++ b/player/lua/stats.lua @@ -156,8 +156,8 @@ function add_header(s) if o.custom_header and o.custom_header ~= "" then s.header = set_ASS(true) .. o.custom_header else - s.header = string.format([[%s{\\fs%d}{\\fn%s}{\\bord%f}{\\3c&H%s&}{\\1c&H%s&} - {\\alpha&H%s&}{\\xshad%f}{\\yshad%f}{\\4c&H%s&}]], + s.header = string.format("%s{\\fs%d}{\\fn%s}{\\bord%f}{\\3c&H%s&}{\\1c&H%s&}" .. + "{\\alpha&H%s&}{\\xshad%f}{\\yshad%f}{\\4c&H%s&}", set_ASS(true), o.font_size, o.font, o.border_size, o.border_color, o.font_color, o.alpha, o.shadow_x_offset, o.shadow_y_offset, o.shadow_color)