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

Sometimes QGIS inserts extra blank lines in the project macros when saving #15660

Closed
qgib opened this issue Sep 24, 2012 · 5 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project

Comments

@qgib
Copy link
Contributor

qgib commented Sep 24, 2012

Author Name: Alister Hood (@AlisterH)
Original Redmine Issue: 6407
Affected QGIS version: master
Redmine category:project_loading/saving


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 issue(s): #16641 (duplicates), #17070 (duplicates)
Redmine related issue(s): 7735, 8267


@qgib
Copy link
Contributor Author

qgib commented Sep 25, 2012

Author Name: Alister Hood (@AlisterH)


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.

@qgib
Copy link
Contributor Author

qgib commented Jan 30, 2014

Author Name: Andreas Neumann (@andreasneumann)


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.

@qgib
Copy link
Contributor Author

qgib commented Jan 31, 2014

Author Name: Olivier Dalang (@olivierdalang)


Hi !

This is probably a duplicate of #16641

@qgib
Copy link
Contributor Author

qgib commented Jun 21, 2014

Author Name: Jürgen Fischer (@jef-n)


  • category_id was configured as Project Loading/Saving

@qgib
Copy link
Contributor Author

qgib commented Jun 22, 2014

Author Name: Jürgen Fischer (@jef-n)


Fixed in changeset "d62a49810e6117d3b3815c9c2367f7ac745f054b".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Project labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
JamesShaeffer pushed a commit to JamesShaeffer/QGIS that referenced this issue Nov 20, 2019
Also fix python bindings for QgsGeometryValidator

(cherry-picked from bc32b1f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Project
Projects
None yet
Development

No branches or pull requests

1 participant