Display line breaks in shownotes correctly
This commit is contained in:
parent
928c438268
commit
cf1259e0b3
|
@ -87,6 +87,9 @@ public class Timeline {
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// ASCII line breaks to HTML line breaks
|
||||||
|
shownotes = shownotes.replace("\n", "<br />");
|
||||||
|
|
||||||
Document document = Jsoup.parse(shownotes);
|
Document document = Jsoup.parse(shownotes);
|
||||||
|
|
||||||
// apply style
|
// apply style
|
||||||
|
@ -100,7 +103,7 @@ public class Timeline {
|
||||||
if (BuildConfig.DEBUG)
|
if (BuildConfig.DEBUG)
|
||||||
Log.d(TAG, "Recognized " + elementsWithTimeCodes.size() + " timecodes");
|
Log.d(TAG, "Recognized " + elementsWithTimeCodes.size() + " timecodes");
|
||||||
for (Element element : elementsWithTimeCodes) {
|
for (Element element : elementsWithTimeCodes) {
|
||||||
Matcher matcherLong = TIMECODE_REGEX.matcher(element.text());
|
Matcher matcherLong = TIMECODE_REGEX.matcher(element.html());
|
||||||
StringBuffer buffer = new StringBuffer();
|
StringBuffer buffer = new StringBuffer();
|
||||||
while (matcherLong.find()) {
|
while (matcherLong.find()) {
|
||||||
String h = matcherLong.group(1);
|
String h = matcherLong.group(1);
|
||||||
|
|
Loading…
Reference in New Issue