lpaulsen93 / dokuwiki-plugin-odt

Exports a page to the Open Document format used by OpenOffice.org and other word processors
http://www.dokuwiki.org/plugin:odt
13 stars 26 forks source link

Error opening exported doc #255

Open mark-prins opened 4 years ago

mark-prins commented 4 years ago

Following on from #254 ( specifically, this comment )

Exporting this page as an ODT works, but the resulting doc cannot be opened.

The text of the wiki page is this:

====== 26.02. Remote support - installing TeamViewer ======

Over the years we have used a number of applications for providing remote support to clients.  As of writing this (January 2020) TeamViewer is the software that we use.

Please use the download link below, this is customised for interaction with Sustainable Solutions to allow us to best provide you with remote mSupply support.

===== Installing the TeamViewer Host customised for mSupply =====

  - **Download** and save the zip file at the following link https://msupply.org.nz/files/Teamviewer/Teamviewer_mSupply_deployment-2020-06-24.zip
  - **Extract** the files from the Teamviewer_Support_deployment.zip file onto the host computer{{ :faq:tv_installation_file-2020-07-20.png?300 |}}
  - **Uninstall** - if TeamViewer is already installed on the machine you will need to uninstall it.
  - **Change the Computer Name** to something meaningful <wrap em>before</wrap> installing TeamViewer.  Use a name that reflects the site and / or user would be useful. e.g. ''Auckland - Grafton Pharmacy'' - this is what the machine will show up as on our international directory.
    * To change the computer name in Windows go to: **Control Panel > System and Security > System > Advanced system settings > Computer Name > Change...**
    * //Note that the Computer description is NOT the Computer Name//
  - **Open** the folder you saved the three files to
  - **Run as administrator** - <wrap em>right click</wrap> on the file ''Install in New - RUN AS ADMIN.bat'' and select <wrap em>Run as administrator</wrap>
    * Note: you must chose to "Run as administrator" for this to work properly, even if you are already logged on to the computer as an administrator.
    * The Teamviewer Customised Host window should appear on your screen:{{ :faq:tv_custom_host_window.png?600 |}} <WRAP center round tip> If the above window does not appear, the full installation has not completed.  It definitely helps to run the batch file with a reasonable internet connection.  If the internet connection is not good enough, then some or all of the actions in the batch file will not complete.  If that happens, please re-run the batch file (as Admin) when the internet connection is better.
</WRAP>
  - **Notify Sussol** When you see this TeamViewer Host window, send us a message or email (on [[support@msupply.org.nz]]) and give us the computer name that you gave the machine in step 4 above.  Otherwise, the TeamViewer ID should also work (a screenshot is fine).  We will then be able to confirm for you that the remote access is operational and ready for us to provide you remote support.

|  //  Previous:  **[[faq:how_to_re-set_msupply_client|]]** | | Next: **[[faq:why_is_my_stock_balance_negative|]]** //  |

There are a few plugins installed on that site, so perhaps one of them is causing an issue?

Resulting ODT file attached, compressed as a zip - github doesn't like .odt files apparently!

faq-install_remote_support_software.odt.zip

lpaulsen93 commented 4 years ago

The problem is caused by using wrap syntax inside a list item. A minimal example to produce the problem is:

  - test test test <WRAP center round tip> tip tip tip</WRAP>
lpaulsen93 commented 4 years ago

I had a look and the problem is unfortunately not easy to fix.

The reason is that some things come together in this situation:

All this leads to more than one code part that would need to be fixed/adjusted. I think larger parts would need a re-write to support this in a clean way. To be honest I am not willing to spent that much time on this at the moment. I also fear that the ODT plugin would become even slower after such a change.

So, sorry at the moment this won't be fixed. This means that wrap boxes inside a list are actually not supported for now.

mark-prins commented 4 years ago

@lpaulsen93 ok - thanks for checking it out and for the clear explanation