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