selfthinker / dokuwiki_plugin_wrap

Wrap Plugin for DokuWiki: Universal plugin which combines functionalities of many other plugins. Wrap wiki text inside containers (divs or spans) and give them a class (choose from a variety of preset classes), a width and/or a language with its associated text direction.
http://www.dokuwiki.org/plugin:wrap
GNU General Public License v2.0
41 stars 33 forks source link

CSS doesn't work with ODT plugin #258

Closed eduardomozart closed 1 year ago

eduardomozart commented 1 year ago

Hello, When exporting the following page to ODT (using ODT plugin) containing a WRAP block, it's style isn't being applied to the output ODT and the following error is thrown when display_errors PHP directive is ON.

Warning: Undefined array key "background-color" in /home/robertinho/public_html/wiki/lib/plugins/wrap/helper.php on line 656

Warning: Undefined array key "background-image" in /home/robertinho/public_html/wiki/lib/plugins/wrap/helper.php on line 657

Warning: Undefined array key "margin-top" in /home/robertinho/public_html/wiki/lib/plugins/wrap/helper.php on line 658

Warning: Undefined array key "margin-right" in /home/robertinho/public_html/wiki/lib/plugins/wrap/helper.php on line 659

Warning: Undefined array key "margin-bottom" in /home/robertinho/public_html/wiki/lib/plugins/wrap/helper.php on line 660

Warning: Undefined array key "margin-left" in /home/robertinho/public_html/wiki/lib/plugins/wrap/helper.php on line 661

I also opened an bug report at ODT plugin page at https://github.com/lpaulsen93/dokuwiki-plugin-odt/issues/291 to attempt to troubleshoot this issue further.

include.txt

wiki-plugin-include.odt

eduardomozart commented 1 year ago

It doesn't seems to be an Wrap plugin issue, as I was able to export it on colors using ODT plugin, as can be seen on https://github.com/lpaulsen93/dokuwiki-plugin-odt/issues/291

Also see https://www.dokuwiki.org/plugin:wrap#odt_support to change media_sel to "screen".