Fixes #223. Fixes internal reader issue on 4.2.2

This commit is contained in:
Amine 2018-09-30 09:37:22 +02:00
parent 2be872e61e
commit 29d1e38340

View File

@ -401,34 +401,41 @@ class ArticleFragment : Fragment() {
rootView.webcontent.loadDataWithBaseURL(
baseUrl,
"""<style>
|img {
"""<html>
|<head>
| <style>
| img {
| display: inline-block;
| height: auto;
| width: 100%;
| max-width: 100%;
|}
|a {
| }
| a {
| color: $stringColor !important;
|}
|*:not(a) {
| }
| *:not(a) {
| color: $stringTextColor;
|}
|* {
| }
| * {
| font-size: ${fontSize.toPx}px;
| text-align: justify;
| word-break: break-word;
| overflow:hidden;
|}
|a, pre, code {
| }
| a, pre, code {
| text-align: left;
|}
|pre, code {
| }
| pre, code {
| white-space: pre-wrap;
| width:100%;
| background-color: $stringBackgroundColor;
|}</style>$c""".trimMargin(),
"text/html; charset=utf-8",
| }
| </style>
|</head>
|<body>
| $c
|</body>""".trimMargin(),
"text/html",
"utf-8",
null
)