File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
app/src/main/java/fr/gaulupeau/apps/Poche Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -364,6 +364,14 @@ public void setArticleTextAlignmentJustify(boolean value) {
364364 setBoolean (R .string .pref_key_ui_article_textAlignment_justify , value );
365365 }
366366
367+ public String getHandlePreformattedTextOption () {
368+ return getString (R .string .pref_key_ui_article_handlePreformattedText , "pre-overflow" );
369+ }
370+
371+ public void setHandlePreformattedTextOption (String value ) {
372+ setString (R .string .pref_key_ui_article_handlePreformattedText , value );
373+ }
374+
367375 public boolean isFullscreenArticleView () {
368376 return getBoolean (R .string .pref_key_ui_article_fullscreen , false );
369377 }
Original file line number Diff line number Diff line change @@ -683,6 +683,7 @@ private String getHtmlPage() {
683683 if (weightedFont ) additionalClasses .add ("weighted-font" );
684684 if (settings .isArticleFontSerif ()) additionalClasses .add ("serif-font" );
685685 if (settings .isArticleTextAlignmentJustify ()) additionalClasses .add ("text-align-justify" );
686+ additionalClasses .add (settings .getHandlePreformattedTextOption ());
686687
687688 String classAttr ;
688689 if (!additionalClasses .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments