Fix issue #272: PHP 8+ warnings, "undefined array key", margins#275
Fix issue #272: PHP 8+ warnings, "undefined array key", margins#275nerun wants to merge 1 commit intoselfthinker:masterfrom nerun:undefined-array-keys
Conversation
… 671-4 and 695.
|
Failed in the exactly same tests than #274. |
|
The ending results will be exactly as PR #274 because the margin values will be override to "0cm" since line 709 ( https://github.com/selfthinker/dokuwiki_plugin_wrap/blob/master/helper.php#L709 ) check's if float is null and set the margin values to '0cm'. Let's wait Klap-in (I'll not mark him as he is occupied) review our code changes and he chooses the one that will be commited to the code. Thank you for your code contribution. |
|
Thanks for trying friend! |
|
The ODT XML specification requires to specify the unit ('cm', etc.). Try avoid focusing in those auto PHP tests. I believe they are broken, maybe some required file is missing for them. |
|
Hi, thanks for the proposals. I have not the time dive in the odt part, so may I ask you both to conclude on this topic what is the best. If following the odt specification is better then #274 is the way, otherwise #275? If unit tests are incorrect, is it possible to fix them? |
|
Hello @Klap-in, |
|
I will see if I can add the new test setup with the dev plugin. |
An alternative fix for issue #272, since PR #274 Fix ODT exporting tables do not pass the tests. Crossing fingers...
I am using this fix since 22 sep 2023 and no issues.