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

Project -> Save as GPX produce "&lt;" instead of "<" for POI <desc> tags #704

Open
SylvainDeCadix opened this issue Dec 22, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SylvainDeCadix
Copy link

Describe the bug

In workspace, Project -> "Save as". The GPX produced contains "<" instead of "<" for POI tag.
I've not check if this append for other tags.

What have you done to circle down the problem?

Just open the GPX produce in a text editor

To Reproduce

  1. Have a project with POI that have descriptions
  2. In the workspace, right-clic on the project "Sauvegarder sous" (Save as) Choose where to save the GPX, Save it
  3. Open the GPX in a text editor
  4. See error

Expected behavior

"" instead of "<desc>"

Screenshots

Attachments

Tracebacks

Desktop

  • OS: Kubuntu 24.10
  • QMapShack Version: 1.17.1 (.appimage)
  • Window Manager: KDE

Additional context

I've not check if the problem appear with over GPX tags.

@SylvainDeCadix SylvainDeCadix added the bug Something isn't working label Dec 22, 2024
@frankystone
Copy link

What is the bug? Do you have any problems with this conversion?

Looking with a text editor shows for a comment and description e.g.:

  <cmt>&lt;div>
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">comment&lt;/p>&lt;/div></cmt>
  <desc>&lt;div>
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Description&lt;/p>&lt;/div></desc>

The tags <cmt> and <desc> are correct and valid.

You can rename the extension of the file from .gpx to .xml and look at the file in an internet browser. There you will see that all is shown correct:

<cmt><div> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">comment</p></div></cmt>
<desc><div> <p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">Description</p></div></desc>

As long this doesn't lead to misbehavior of a GIS application this is not a bug, imho.

@SylvainDeCadix
Copy link
Author

Ok.
I do textual transformation of QMapShack POI GPX files with PERL pattern maching to make it compatible with Oruxmaps. I expected textual consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants