The option under Load/Save > General is unnecessary, since most developers prefer external tools to make the underlying XML human-readable. The option and the affiliated code should be removed.
(In reply to comment #0) > The option and the affiliated code should be removed. > Let me clarify that - the UI code can go, but I'd very much like to keep the code in xmloff that adds the line breaks, such that pro users / hackers can use the hidden config item to tweak this.
Adding some code pointers, in order to this really qualify as an EasyHack :-) I am not that eager to keep some functionality that is not going to be used much because high bitrot probability; but the easy hack is this: git grep BTN_NOPRETTYPRINTING in the sources, and you'll see something like: cui/source/options/optsave.cxx: aSizeOptimizationCB ( this, CUI_RES( BTN_NOPRETTYPRINTING ) ), cui/source/options/optsave.hrc:#define BTN_NOPRETTYPRINTING 20 cui/source/options/optsave.src: CheckBox BTN_NOPRETTYPRINTING cui/source/options/optsave.src: HelpID = "cui:CheckBox:RID_SFXPAGE_SAVE:BTN_NOPRETTYPRINTING"; Remove the mentions of this, the definitions of the button etc., and also anything that is calling it. In this case, also the aSizeOptimizationCB member, and make the code behave as if it was always 'on' (ie. PrettyPrinting off). If you have any questions, please mail the libreoffice@lists.freedesktop.org mailing list, and CC me :-) We can investigate later if we want to keep the underlying functionality, or not. Thank you!
(In reply to comment #0) > The option under Load/Save > General is unnecessary, since most developers > prefer external tools to make the underlying XML human-readable. > > The option and the affiliated code should be removed. What is the benefit of removing this option? It is useful for advanced users who need to understand or hack these xml files. I agree that the option could be replaced by a command-line parameter. Best regards. JBF
The benefit of removing it from the UI would be a cleaner options dialog, which would be less overwhelming to most users. In order to satisfy advanced users, an advanced options pane could be added which would work like Firefox' about:config
(In reply to comment #3) > What is the benefit of removing this option? It is useful for advanced users > who need to understand or hack these xml files. Hello Jean-Baptiste As said, most developers prefer external tools to make the underlying XML human-readable. Anyway the "advanced" user must also unzip the file... Regards Pierre-Yves
(In reply to comment #2) > We can investigate later if we want to keep the > underlying functionality, or not. > I clearly *do* want to keep the code in xmloff. Beyond that, what you say - kill the UI code in cui, please. :)
IMHO this option should be available at least if "Experimental features" are enabled.
(In reply to comment #7) > IMHO this option should be available at least if "Experimental features" are > enabled. > Nope. Let's kill the UI for that alright. Expert users can tweak config directly or via an extension.
Samuel Mehrbrodt committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=111a2b94fd6f217d91c9a057086b3d2dfa752c5b fdo#54812 Remove option 'Size optimization for ODF format' The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
I pushed help update for Gerrit review: https://gerrit.libreoffice.org/#/c/6113/ Btw, I am not fan of removing options - I think that the approach "find a documented and categorized option in GUI" is better than "find it in tons of unstructured options in about::config" (thanks for it, much better than remove the option completely). Of course this particular option doesn't matter (even if it is very handy for me), but LibreOffice way was chosen and more removals will follow... Hopefully someone will create an extension like GUI config for Firefox and everyone will be happy:))
Stanislav Horacek committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/help/commit/?id=8ae99d7acf90b02d7ae8b90587d721a95724b754 fdo#54812 remove size optimization option The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Migrating Whiteboard tags to Keywords: (EasyHack) [NinjaEdit]
This option it seems was related also to image optimization/scaling (Bug 34133), the option to reduce the file size of images with unnecessary large. Was the accepted answer [on this question][1]. The comments on this bugs are related to XML (prettify/minify?) instead of image size. Would be nice more info about the scope of the removed option. [1]: https://ask.libreoffice.org/en/answers/750/revisions/