Remove escapes when reading back
authorEnrico Zini <enrico@enricozini.org>
Fri, 27 Nov 2009 16:02:20 +0000 (17:02 +0100)
committerEnrico Zini <enrico@enricozini.org>
Fri, 27 Nov 2009 16:02:20 +0000 (17:02 +0100)
src/clock.vala
src/zavai.vala

index f472a3c70658fef20e4f62ac521449cd6b0908fd..ac27298aa891472d444f73db285b09de5f11b035 100644 (file)
@@ -127,6 +127,7 @@ public class Alarm : Object
                                        size_t size = line.size();
                                        if (size < 15) continue;
                                        label = line.substring(13, (long)(size - 14));
+                                       label = label.compress();
                                        break;
                                }
                        }
index 2cd7f2a2749fd85ec0b6a58509fbd08209427373..a5b7aaf97194f8d23f0aba301421c2eb5a266a25 100644 (file)
@@ -52,7 +52,7 @@ static int main (string[] args) {
                        stdout.printf("zavai at job: %s\n", label);
        }
 
-       zavai.clock.Alarm.schedule("now + 1 hour", "Antani blinda la supercazzola");
+       zavai.clock.Alarm.schedule("now + 1 hour", "An\"\'\'\n\n\ttani blinda la supercazzola");
 
        return 0;