mirror of
https://github.com/octoleo/plantuml.git
synced 2024-11-24 22:07:33 +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"), //
|
new RegexLeaf("as"), //
|
||||||
RegexLeaf.spaceOneOrMore() //
|
RegexLeaf.spaceOneOrMore() //
|
||||||
)), //
|
)), //
|
||||||
new RegexLeaf("CODE", "([%pLN%s_.:<>]+)"), //
|
new RegexLeaf("CODE", "([%pLN%s_.:]+)"), //
|
||||||
RegexLeaf.spaceZeroOrMore(), //
|
RegexLeaf.spaceZeroOrMore(), //
|
||||||
new RegexLeaf("STEREO", "(<<.*>>)?"), //
|
new RegexLeaf("STEREO", "(<<.*>>)?"), //
|
||||||
RegexLeaf.spaceZeroOrMore(), //
|
RegexLeaf.spaceZeroOrMore(), //
|
||||||
@ -93,7 +93,7 @@ public class CommandCreateAttribute extends SingleLineCommand2<ChenEerDiagram> {
|
|||||||
final Quark<Entity> quark = diagram.quarkInContext(true, id);
|
final Quark<Entity> quark = diagram.quarkInContext(true, id);
|
||||||
String displayText = arg.get("DISPLAY", 0);
|
String displayText = arg.get("DISPLAY", 0);
|
||||||
if (displayText == null)
|
if (displayText == null)
|
||||||
displayText = quark.getName();
|
displayText = idShort;
|
||||||
|
|
||||||
final String stereo = arg.get("STEREO", 0);
|
final String stereo = arg.get("STEREO", 0);
|
||||||
final boolean composite = arg.get("COMPOSITE", 0) != null;
|
final boolean composite = arg.get("COMPOSITE", 0) != null;
|
||||||
|
Loading…
Reference in New Issue
Block a user