1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-11-14 17:34:06 +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"), //
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;