Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error opening exported doc #255

Open
mark-prins opened this issue Sep 2, 2020 · 3 comments
Open

Error opening exported doc #255

mark-prins opened this issue Sep 2, 2020 · 3 comments

Comments

@mark-prins
Copy link

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 [[[email protected]]]) 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
Copy link
Owner

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
Copy link
Owner

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

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

  • we are in a list
  • a wrap box is in the list:
    • that creates an ODT frame
    • with a table in it
  • the ODT plugin includes some intelligence to emulate a table being part of a list. This is not possible in the ODT format. What the ODT plugin is doing in this situation is:
    • remember the open list data and close it
    • handle the table from open to close
    • automatically indent the table so that it looks like being part of the list item (but in fact the table is outside of the list)
    • on close of the table the list is re-opened (that means a second list is opened continuing the first one)

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants