mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-15 18:08:17 -07:00
Merge pull request #4895 from thornbill/subs-text-dir
Use LTR for default subtitle direction
This commit is contained in:
commit
0a509d682a
@ -143,7 +143,9 @@ function normalizeTrackEventText(text, useHtml) {
|
||||
const result = text
|
||||
.replace(/\\N/gi, '\n') // Correct newline characters
|
||||
.replace(/\r/gi, '') // Remove carriage return characters
|
||||
.replace(/{\\.*?}/gi, ''); // Remove ass/ssa tags
|
||||
.replace(/{\\.*?}/gi, '') // Remove ass/ssa tags
|
||||
// Force LTR as the default direction
|
||||
.split('\n').map(val => `\u200E${val}`).join('\n');
|
||||
return useHtml ? result.replace(/\n/gi, '<br>') : result;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user