Comments (2)
Thanks for the report, this is an interesting one.
The issue is caused by a few <a:t> </a:t>
in slide1.xml
being minimized to <a:t/>
, this is working as intended from xml perspective because xml:space="preserved"
was not specified, so it should be safe to strip whitespaces. If PowerPoint was relying on the spaces for formating, then xml:space="preserved"
should be added to the xml.
What's weird is that Word documents actually have xml:space="preserved"
in their xml, so Leanify can detect it and not strip space in that case (details at #3), maybe Microsoft forgot to do this for PowerPoint? Does anyone know how to file a bug report for PowerPoint?
@jul059 Which PowerPoint version was used to create this document?
I probably can implement some workaround for this in Leanify, but I think this is actually PowerPoint's fault.
from leanify.
@JayXon the original file was handed to me by a teacher, so I have no idea where it came from. It might have been originally a .ppt file that was later converted to .pptx, or perhaps it was a keynote file that was converted to .pptx since I'm studying in an environment where Apple products are the norm. I have no way of knowing unless there is some hidden information inside the original file that I can look for. Please tell me if there is.
I have used the latest PowerPoint for Windows (Version 1808 build 10730.20334 or 16.0.10730.20334) to create this new, single slide file by deleting every other slides.
You're right that it is probably PowerPoint's fault (or the converter's fault if it was originally in a different format). But since it is properly displayed by PowerPoint, it would seem that it may somehow "know" about it by displaying the spaces. It might therefore be an issue of PowerPoint's xml files not being strict xml files even though there is no mention of this anywhere. We've seen this with the old Internet Explorers where you would have to include a bunch of IE specific hacks to make sure the web page was displayed properly.
In any case, I think a workaround should be implemented even if a bug is fixed in PowerPoint since these faulty files already exist and are functional.
from leanify.
Related Issues (20)
- wasm support
- Recursive compression of images within epub files HOT 3
- How can I restrict specific files or file types from being optimized? HOT 2
- Please release a new version. HOT 5
- LossLess JPEG optimization? HOT 2
- fatal error: 'stdio.h' file not found HOT 1
- Building from source fails HOT 5
- `Map file error: No such device` using mergerFS HOT 2
- [Bug Report]heap-buffer-overflow in function LeanifyFile():leanify.cpp:140 HOT 3
- Add SECURITY.md HOT 5
- [Bug]out-of-memory in function get_mutable_buffer():/pugixml.cpp:2051
- pixel per inch HOT 2
- make error: lib/LZMA/LzmaEnc.c:2996:19: error: storing the address of local variable ‘outStream’ in ‘p_16->rc.outStream’ [-Werror=dangling-pointer=] HOT 1
- Cflags issue on Apple M1 (ARM) HOT 3
- Out of memory error when compiling HOT 10
- [NOISSUE] Was there previously a GUI version called Leanify++? HOT 1
- Is arm64 / aarch64 architecture supported? HOT 1
- Is there a way that to both keep Photo's EXIF and remove Location? HOT 2
- Need periodic releases so that this excellent tool can be picked up by linux/arch repos. HOT 1
- Bump version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leanify.