View Single Post
Old 03-18-2024, 03:14 AM   #4
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 983
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
This sounds like the feature that this patch to libnickel changes:

Code:
Un-Force user text-align in div,p tags in KePubs:
  - Enabled: yes
  - Description: |
      This patch allows the text alignment set by the publisher in the kepub
      stylesheet to override the alignment selected by the reader from the device.
    #     div, p { text-align: %1 !important; }
    # --> body   { text-align: %1 !important; }
  - FindBaseAddressString: "div, p { text-align: %1"
  - ReplaceString:
      Find:    "div, p {"
      Replace: "body   {"
      MustMatchLength: yes
You could experiment using an element that isn't a div or p.
chrisridd is offline   Reply With Quote