Fix regex
This commit is contained in:
parent
47f9035f87
commit
a716225212
|
@ -652,6 +652,7 @@ public class Status implements Parcelable{
|
|||
}
|
||||
status.setImageURL(imgs);
|
||||
content = content.replaceAll("(<\\s?p\\s?>)>(((?!(<\\/p>)|(<br)).){5,})(<\\s?\\/p\\s?><\\s?p\\s?>|<\\s?br\\s?\\/?>)","<blockquote>$2</blockquote><p>");
|
||||
content = content.replaceAll("^<\\s?p\\s?>(.*)<\\s?\\/p\\s?>$","$1");
|
||||
spannableStringContent = new SpannableString(content);
|
||||
final int[] j = {0};
|
||||
if( status.getImageURL() != null && status.getImageURL().size() > 0){
|
||||
|
|
|
@ -137,7 +137,6 @@
|
|||
android:orientation="vertical">
|
||||
<app.fedilab.android.helper.CustomTextView
|
||||
android:id="@+id/notification_status_content"
|
||||
android:layout_marginBottom="-20dp"
|
||||
android:textIsSelectable="true"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
|
|
@ -336,7 +336,6 @@
|
|||
|
||||
<app.fedilab.android.helper.CustomTextView
|
||||
android:id="@+id/status_content"
|
||||
android:layout_marginBottom="-20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textIsSelectable="true" />
|
||||
|
|
|
@ -248,7 +248,6 @@
|
|||
<app.fedilab.android.helper.CustomTextView
|
||||
android:id="@+id/status_content"
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginBottom="-20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<Button
|
||||
|
|
|
@ -244,7 +244,6 @@
|
|||
<app.fedilab.android.helper.CustomTextView
|
||||
android:id="@+id/status_content"
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginBottom="-20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<Button
|
||||
|
|
|
@ -177,7 +177,6 @@
|
|||
<app.fedilab.android.helper.CustomTextView
|
||||
android:id="@+id/status_content"
|
||||
android:textIsSelectable="true"
|
||||
android:layout_marginBottom="-20dp"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<Button
|
||||
|
|
Loading…
Reference in New Issue