View Single Post
Old 11-22-2019, 09:29 PM   #154
droopy
Guru
droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.droopy ought to be getting tired of karma fortunes by now.
 
Posts: 834
Karma: 2912460
Join Date: Apr 2009
Device: Kobo Forma
Quote:
Originally Posted by geek1011 View Post
Can you post the code for "Increase TOC level indentation"? I think you did something wrong there.

And also, that error message shouldn't even be possible. I'm really interested in what allowed (*yaml.Node).DecodeStrict to work on a *kobopatch.Instruction, but decode to a type which isn't either a property or a *kobopatch.PatchableInstruction (which is verified in the unit tests...). Edit: there is one way, I think, which is if you somehow made an instruction null (https://yaml.org/type/null.html), but I don't see how you'd do that by accident...
How embarassing! I changed the "No" to a "Yes". But then I saw the next patch "Increase TOC level indentation and fix extra indentation bug", and enabled that patch. I then went back to the patch in question and control-backspaced the word "Yes" and forgot to write the word No.
Code:
Increase TOC level indentation:
  - Enabled:
  - PatchGroup: TOC Indentation
  - Description: |
      The space indented Table of Contents levels are quite hard to see, as the
      difference is almost too small to easily notice.
  # Shift by 2 instead of 1 (multiply level by 4 instead of 2).
  - ReplaceBytes: {Offset: 0x946F96, FindH: 42 00, ReplaceH: 82 00}
droopy is offline   Reply With Quote