1
0
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:
Benjamin Davies 2024-03-20 16:54:40 +13:00
parent 83255431f7
commit cbe84c240a
No known key found for this signature in database
GPG Key ID: 9FFDE0674336C460

View File

@ -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;