diff --git a/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java b/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java index 027b23486..7d8d966d8 100644 --- a/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java +++ b/src/net/sourceforge/plantuml/cheneer/command/CommandCreateAttribute.java @@ -71,7 +71,7 @@ public class CommandCreateAttribute extends SingleLineCommand2 { new RegexLeaf("as"), // RegexLeaf.spaceOneOrMore() // )), // - new RegexLeaf("CODE", "([%pLN%s_.:<>]+)"), // + new RegexLeaf("CODE", "([%pLN%s_.:]+)"), // RegexLeaf.spaceZeroOrMore(), // new RegexLeaf("STEREO", "(<<.*>>)?"), // RegexLeaf.spaceZeroOrMore(), // @@ -93,7 +93,7 @@ public class CommandCreateAttribute extends SingleLineCommand2 { final Quark quark = diagram.quarkInContext(true, id); String displayText = arg.get("DISPLAY", 0); if (displayText == null) - displayText = quark.getName(); + displayText = idShort; final String stereo = arg.get("STEREO", 0); final boolean composite = arg.get("COMPOSITE", 0) != null;