mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Fix attribute labels
This commit is contained in:
parent
83255431f7
commit
cbe84c240a
@ -71,7 +71,7 @@ public class CommandCreateAttribute extends SingleLineCommand2<ChenEerDiagram> {
|
||||
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<ChenEerDiagram> {
|
||||
final Quark<Entity> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user