Closed rhaschke closed 4 years ago
Done. Could you give it another try?
Almost correct. I didnt realize it before, but there is one slash missing. It should be
newUrlExpanded = "file:///" + sTemp + "/" + sDocFileNameWithoutExtension + "-expanded.odp"
(note that this would require to remove the trailing slash from "/tmp" in the Linux case).
Thanks for doing this. Much appreciated.
Done. No need to drop the leading slash for Linux.
Works on Windows 7. Great, thank you. Green light from me.
Just out of curiosity: If you don't remove the slash, don't you get "file:////tmp/..." ? Is that a valid RFC 8089 URI?
If you don't remove the slash, don't you get "file:////tmp/..." ? Is that a valid RFC 8089 URI?
It's not a problem to have a path like //foo///bar
, at least on Linux. I think the same holds for windows.
You're right, I looked it up. POSIX defines multiple slashes in local paths to be treated as one.
thanks a lot! LGTM. Are you both OK to merge?
absolutely.
Yes, this should be ready for merging.
Thanks a lot. Pushed 0.6 in f52e88f
As pointed out here, the hardcoded /tmp folder only works on unix-like systems. This PR evaluates the environment variable TEMP, which should be set on Windows to a reasonable value by default. Hopefully fixes #29. @katz-hm, could you, please, give it a try?