mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Use LTR for default subtitle direction
This commit is contained in:
parent
bfbdffdff5
commit
07e86dee9d
1 changed files with 3 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue