From 5ed57159043c0997ab0a63b896920594df221522 Mon Sep 17 00:00:00 2001 From: Enrico Zini Date: Sun, 28 Mar 2010 00:04:53 +0000 Subject: [PATCH] Add tag into log metadata so it's easier to read --- src/log.vala | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/log.vala b/src/log.vala index 6b9c069..cd89471 100644 --- a/src/log.vala +++ b/src/log.vala @@ -180,6 +180,7 @@ public class Log : Object outfd.puts(" xsi:schemaLocation=\"http://www.topografix.com/GPX/1/0 http://www.topografix.com/GPX/1/0/gpx.xsd\">\n"); outfd.puts(" \n"); outfd.printf(" %s\n", Markup.escape_text(title)); + outfd.printf(" %s\n", Markup.escape_text(tag)); outfd.puts(" \n"); if (track != null) writeTrack(outfd); if (entries != null) writeEntries(outfd); @@ -290,6 +291,10 @@ class LogParser: Object break; } } + else if (name == "keywords") + { + result.tag = cur_text; + } else if (name == "time") { Time t = Time(); -- 2.39.5