Skip to content

Commit

Permalink
🗑️ Removes the String.removeHtmlTags utility as it removes line breaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinCaroff committed Apr 10, 2024
1 parent 8917af5 commit e0e91d4
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 48 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ import androidx.compose.foundation.layout.ExperimentalLayoutApi
import androidx.compose.foundation.layout.FlowRow
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.rememberScrollState
Expand Down Expand Up @@ -49,7 +47,6 @@ import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.intl.Locale
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
Expand All @@ -66,7 +63,6 @@ import dev.icerock.moko.resources.compose.stringResource
import fr.androidmakers.domain.model.SocialsItem
import fr.androidmakers.domain.model.Speaker
import fr.androidmakers.domain.model.isAppClinic
import fr.androidmakers.domain.utils.removeHtmlTags
import fr.paug.androidmakers.ui.MR
import io.openfeedback.m3.OpenFeedback
import io.openfeedback.viewmodels.OpenFeedbackFirebaseConfig
Expand Down Expand Up @@ -220,7 +216,7 @@ private fun SessionDetails(

Text(
modifier = Modifier.padding(top = 16.dp),
text = sessionDetails.session.description?.removeHtmlTags() ?: "",
text = sessionDetails.session.description ?: "",
textAlign = TextAlign.Start,
style = MaterialTheme.typography.bodyLarge,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import androidx.compose.ui.unit.dp
import com.androidmakers.ui.model.UIVenue
import com.seiko.imageloader.rememberImagePainter
import dev.icerock.moko.resources.compose.stringResource
import fr.androidmakers.domain.utils.removeHtmlTags
import fr.paug.androidmakers.ui.MR

@Composable
Expand Down Expand Up @@ -61,7 +60,7 @@ fun VenueLayout(
uiVenue.descriptionEn
}
Text(
text = description.removeHtmlTags(),
text = description,
modifier = Modifier.padding(8.dp),
style = MaterialTheme.typography.bodyMedium,
)
Expand Down

0 comments on commit e0e91d4

Please sign in to comment.