straw/app/src/main/java/org/schabi/newpipe/streams
TransZAllen 22ee01bcfb refactor(ttml): improve extractText() to preserve spaces and special characters
- Replaced `text()` with `getWholeText()`:
  - avoids losing whitespaces at the beginning, end, or within the text;
  - avoids merging two or more consecutive spaces into a single space ' ';
  - avoids converting '\r', '\n', and '\r\n' within the text into a single space ' ';
  For subtitle conversion, the goal is to preserve every character exactly as intended by the subtitle author.
- Normalized tabs, line breaks, and other special characters for SRT-safe output.
- Added comprehensive unit tests in `SrtFromTtmlWriterTest.java`, including cases for simple and nested tags.
2025-10-17 01:57:01 +08:00
..
io Fix downloading/exporting when overwriting file would not truncate 2024-11-24 18:36:54 +01:00
DataReader.java Changed the code accordingly 2022-07-15 19:55:19 +02:00
Mp4DashReader.java Lint: Inner class may be static 2020-11-18 18:02:33 -05:00
Mp4FromDashWriter.java Changed the code accordingly 2022-07-15 19:55:19 +02:00
OggFromWebMWriter.java Fix Lint: Inconsistent line separators 2020-11-22 10:16:27 +01:00
SrtFromTtmlWriter.java refactor(ttml): improve extractText() to preserve spaces and special characters 2025-10-17 01:57:01 +08:00
WebMReader.java Use toArray() with zero-length arrays. 2022-08-05 06:50:55 +05:30
WebMWriter.java Use Math.floorDiv(). 2022-11-09 20:01:40 +05:30