This code will fork the HTML rendering away from webEngine when
a matching printer is selected. Dymo is the only case so far.
The rendering will instead be performed by JEditorPane/HTMLEditorKit.
JEditorPane has a much more rudimentary interpretation of CSS which
in-turn means that the templates will need some tweaking. For
example any CSS defined between <style> tags cannot be defined by
good old "class" dot DOM selectors. AKA .spine is not understood.
Instead, the template needs to use in-line styles on the DOM element
or a DOM selector by tag name. AKA "table tr td pre".
It might be a good idea to put out some release notes to that effect but I'm not sure where. Evergreen Repo?
Alright yall. I've finally got this in a good place:
http:// git.evergreen- ils.org/ ?p=working/ Hatch.git; a=shortlog; h=refs/ heads/user/ blake/LP1741299 _DYMO_LabelWrit er_450_ Turbo_Hatch_ Label_print_ fails_with_ margin_ error
From the commit message:
This code will fork the HTML rendering away from webEngine when HTMLEditorKit.
a matching printer is selected. Dymo is the only case so far.
The rendering will instead be performed by JEditorPane/
JEditorPane has a much more rudimentary interpretation of CSS which
in-turn means that the templates will need some tweaking. For
example any CSS defined between <style> tags cannot be defined by
good old "class" dot DOM selectors. AKA .spine is not understood.
Instead, the template needs to use in-line styles on the DOM element
or a DOM selector by tag name. AKA "table tr td pre".
It might be a good idea to put out some release notes to that effect but I'm not sure where. Evergreen Repo?