This patch prevents the ePub reader from recognising the line-height property in the book's stylesheet, which has the same effect as completely stripping the line-height property or filtering it out during a Calibre conversion.
I don't recomment using this patch because it will spoil the formatting of some well-made ePubs, it is better to selectively fix just the badly-made ePubs and leave the well-made ones alone, but if you are routinely stripping the line-height from all your books anyway anyway then this patch does no worse.
This is a two-part patch, it is a stronger replacement for the
`Enorce user line spacing in ePubs` patch which doesn't work on many books, so disable that patch if you were using it. Paste this patch at the
end of the libnickel.so.1.0.0.patch file, otherwise it will interfere with the
`ePub unitless line height` patch.
(This patch should work on all firmware versions from 3.3.0 onwards, but to apply it to versions 3.3.0 - 3.12.0 you would need to use the patch32lsb tools from the instructions for patching firmware version 3.12.1 or later.)
Part 1: paste at the
end of libnickel.so.1.0.0.patch
Part 2: paste into librmsdk.so.1.0.0.patch