From 068665a5599b16a4a21672e5aad9f8ebf60aab22 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Wed, 13 Jun 2012 18:37:16 +0100 Subject: Be a bit more conservative about quoting properties --- tikzit/src/common/GraphElementProperty.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tikzit/src/common/GraphElementProperty.m b/tikzit/src/common/GraphElementProperty.m index 4b47ca6..dbaeda0 100644 --- a/tikzit/src/common/GraphElementProperty.m +++ b/tikzit/src/common/GraphElementProperty.m @@ -120,7 +120,7 @@ } else { static NSCharacterSet *avoid = nil; if (avoid == nil) - avoid = [[NSCharacterSet characterSetWithCharactersInString:@",="] retain]; + avoid = [[[NSCharacterSet characterSetWithCharactersInString:@"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ<>-'0123456789."] invertedSet] retain]; if ([[self value] rangeOfCharacterFromSet:avoid].length > 0) { return [NSString stringWithFormat:@"%@={%@}", [self key], [self value]]; -- cgit v1.2.3