View Single Post
Old 04-07-2024, 07:25 AM   #16
hatuluang
Teluk Biru
hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.hatuluang ought to be getting tired of karma fortunes by now.
 
hatuluang's Avatar
 
Posts: 156
Karma: 348662
Join Date: Jan 2023
Device: Kobo Clara 2E
Quote:
Originally Posted by jackie_w View Post
Try replacing in its entirety nickel.yaml patch Custom synopsis details line spacing with the following replacement:
Spoiler:
Code:
Custom synopsis details line spacing:
  - Enabled: no
  - Description: Sets the line spacing for Book details synopsis & <p> margins/indent
  - FindZlib: "body[qApp_deviceIsTrilogy=true] {\n  line-height: 1.45em;" # qss/BookDetails.qss
  - ReplaceZlibGroup:
      Replacements:
        # m_pluto - add style to reduce inter-paragraph margins for <p> tags
        - Find:    "body {\n  font-family: Georgia;\n  margin: 0px;\n  padding: 0px;\n}"
          Replace: "body {font-family:Georgia; margin:0; padding:0;}\np {margin:0.5em 0 0 0; text-indent:1.5em;}"

        # m_pluto - remove line-height code for oldest Trilogy/Phoenix devices to create space for above code
        - {Find: "body[qApp_deviceIsTrilogy=true] {\n  line-height: 1.45em;\n}\n", Replace: "\n"}
        - {Find: "body[qApp_deviceIsPhoenix=true] {\n  line-height: 1.4em;\n}\n", Replace: "\n"}
          
        # AuraHD/AuraH2O/AuraH2O2/GloHD/ClaraHD/Clara2E (Dragon) and
        # LibraH2O/Libra2 (Storm) and
        # AuraOne/Forma/Sage/Elipsa/Elipsa2E (Daylight) 
        - {Find: "line-height: 1.35em;", Replace: "line-height: 1.3em;"}

How to make the margin and text indent work on Clara 2E?
hatuluang is offline   Reply With Quote