Skip to content

Commit

Permalink
news: normalize word spacing (fixed #2079) (#2285)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Okuro3499 and dogi authored Aug 15, 2023
1 parent c6a8982 commit b1abea3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ android {
applicationId "org.ole.planet.myplanet"
minSdkVersion 19
targetSdkVersion 33
versionCode 963
versionName "0.9.63"
versionCode 964
versionName "0.9.64"
ndkVersion '21.3.6528147'
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,15 @@ package org.ole.planet.myplanet.ui.news
import android.os.Bundle
import android.view.View
import android.webkit.WebSettings
import androidx.recyclerview.widget.RecyclerView
import com.bumptech.glide.Glide
import com.google.gson.Gson
import com.google.gson.JsonObject
import io.realm.Realm
import kotlinx.android.synthetic.main.activity_news_detail.*
import kotlinx.android.synthetic.main.content_news_detail.*
import kotlinx.android.synthetic.main.activity_news_detail.img
import kotlinx.android.synthetic.main.activity_news_detail.toolbar
import kotlinx.android.synthetic.main.content_news_detail.tv_detail
import org.ole.planet.myplanet.R
import org.ole.planet.myplanet.base.BaseActivity
import org.ole.planet.myplanet.base.BaseNewsAdapter.ViewHolderNews
import org.ole.planet.myplanet.datamanager.DatabaseService
import org.ole.planet.myplanet.model.RealmMyLibrary
import org.ole.planet.myplanet.model.RealmNews
Expand All @@ -22,7 +21,8 @@ import org.ole.planet.myplanet.utilities.JsonUtils
import org.ole.planet.myplanet.utilities.NetworkUtils
import org.ole.planet.myplanet.utilities.Utilities
import java.io.File
import java.util.*
import java.util.Date
import java.util.UUID

class NewsDetailActivity : BaseActivity() {
var news: RealmNews? = null
Expand Down Expand Up @@ -76,12 +76,12 @@ class NewsDetailActivity : BaseActivity() {
}
msg = msg.replace(
"\n",
"<div/><br/><div style=\" word-wrap: break-word;page-break-after: always; word-spacing: 20px;\" >"
"<div/><br/><div style=\" word-wrap: break-word;page-break-after: always; word-spacing: 2px;\" >"
)
tv_detail.settings.layoutAlgorithm = WebSettings.LayoutAlgorithm.SINGLE_COLUMN;
tv_detail.loadDataWithBaseURL(
null,
"<html><body><div style=\" word-wrap: break-word; word-spacing: 20px;\" >$msg</div></body></html>",
"<html><body><div style=\" word-wrap: break-word; word-spacing: 2px;\" >$msg</div></body></html>",
"text/html",
"utf-8",
null
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/versions.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_version">0.9.63</string>
<string name="app_version">0.9.64</string>
</resources>

0 comments on commit b1abea3

Please sign in to comment.