mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 14:25:27 +00:00
Quote tags as attributes
We need to quote the tick char (') on tags as this is used as XML attribute. Signed-off-by: Miika Turkia <miika.turkia@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
598d5866c2
commit
acff84a58d
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ static void save_tags(struct membuffer *b, struct tag_entry *entry)
|
|||
struct divetag *tag = entry->tag;
|
||||
put_string(b, sep);
|
||||
/* If the tag has been translated, write the source to the xml file */
|
||||
quote(b, tag->source ?: tag->name, 0);
|
||||
quote(b, tag->source ?: tag->name, 1);
|
||||
sep = ", ";
|
||||
} while ((entry = entry->next) != NULL);
|
||||
put_string(b, "'");
|
||||
|
|
Loading…
Add table
Reference in a new issue