diff options
author | Julian <MyFakeAcc.4@googlemail.com> | 2015-07-31 12:52:37 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-10-09 20:40:31 +0200 |
commit | f22361727edb84ad22f39d73fe1293f516267f39 (patch) | |
tree | 4e37284a3093db2da166d2a52d961e9a19e7f94f | |
parent | 6402f88de458ae743cccdba448098cadcf62d06b (diff) | |
download | mpv-f22361727edb84ad22f39d73fe1293f516267f39.tar.bz2 mpv-f22361727edb84ad22f39d73fe1293f516267f39.tar.xz |
stats: fix line wrapping
These spaces were not displayed on screen, however they were taken into
account for line wrapping.
-rw-r--r-- | player/lua/stats.lua | 4 |
1 files 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) |