Bug report #6407
Sometimes QGIS inserts extra blank lines in the project macros when saving
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | - | ||
Category: | Project Loading/Saving | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 15660 |
Description
Sometimes when I open a different project and QGIS asks if I want to save the current project, and I say yes, it adds an extra newline after every line of code (including blank lines) in the project macros.
Related issues
Associated revisions
History
#1 Updated by Alister Hood about 12 years ago
I'm not 100% sure, but I think this happened on the several occasions when it occurred:
- I opened the project and edited the project macros
- I saved the project
- I tried to open another project and for some reason it asked me to save again
That was on Windows. As far as I can tell, on Linux it never asks you to save the project after you edit the macros, so if nothing else has changed then you lose your changes. And so far I've never had it add all the newlines on Linux.
#2 Updated by Andreas Neumann almost 11 years ago
Interesting.
I observed a similar behavior on Windows if you put metadata in text areas with new-lines (e.g. in the OWS tab (project properties) in the WMS description).
I would assume it is an issue with new-lines that multiply themselves.
#3 Updated by Olivier Dalang almost 11 years ago
Hi !
This is probably a duplicate of #7735
#4 Updated by Jürgen Fischer over 10 years ago
- Category set to Project Loading/Saving
#5 Updated by Jürgen Fischer over 10 years ago
- Status changed from Open to Closed
Fixed in changeset d62a49810e6117d3b3815c9c2367f7ac745f054b.