Commit cf3e61ae by Oliver Woodman

Merge pull request #7938 from bennettpeter:pullreq-ssa-subtitles

PiperOrigin-RevId: 332814223
parents 4aa3a048 efd5265e
......@@ -7,9 +7,8 @@
* Data sources:
* Add support for `android.resource` URI scheme in `RawResourceDataSource`
([#7866](https://github.com/google/ExoPlayer/issues/7866)).
* Core library:
* Suppress Guava-related ProGuard/R8 warnings
([#7904](https://github.com/google/ExoPlayer/issues/7904)).
* Text:
* Add support for `\h` SSA/ASS style override code (non-breaking space).
### 2.12.0 (2020-09-11) ###
......
......@@ -264,7 +264,8 @@ public final class SsaDecoder extends SimpleSubtitleDecoder {
String text =
SsaStyle.Overrides.stripStyleOverrides(rawText)
.replaceAll("\\\\N", "\n")
.replaceAll("\\\\n", "\n");
.replaceAll("\\\\n", "\n")
.replaceAll("\\\\h", "\u00A0");
Cue cue = createCue(text, style, styleOverrides, screenWidth, screenHeight);
int startTimeIndex = addCuePlacerholderByTime(startTimeUs, cueTimesUs, cues);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment