mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 10:59:01 +00:00
Move main link on header line of CommandReferenceMultilinesOverSeveral
This commit is contained in:
parent
51f90138b7
commit
a2859242ff
@ -71,6 +71,8 @@ public class CommandReferenceMultilinesOverSeveral extends CommandMultilines<Seq
|
|||||||
new RegexLeaf("over"), //
|
new RegexLeaf("over"), //
|
||||||
RegexLeaf.spaceOneOrMore(), //
|
RegexLeaf.spaceOneOrMore(), //
|
||||||
new RegexLeaf("PARTS", "((?:[%pLN_.@]+|[%g][^%g]+[%g])(?:[%s]*,[%s]*(?:[%pLN_.@]+|[%g][^%g]+[%g]))*)"), //
|
new RegexLeaf("PARTS", "((?:[%pLN_.@]+|[%g][^%g]+[%g])(?:[%s]*,[%s]*(?:[%pLN_.@]+|[%g][^%g]+[%g]))*)"), //
|
||||||
|
RegexLeaf.spaceZeroOrMore(), //
|
||||||
|
new RegexOptional(new RegexLeaf("URL", "(\\[\\[.*?\\]\\])")), //
|
||||||
RegexLeaf.end());
|
RegexLeaf.end());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -103,13 +105,11 @@ public class CommandReferenceMultilinesOverSeveral extends CommandMultilines<Seq
|
|||||||
lines = lines.removeEmptyColumns();
|
lines = lines.removeEmptyColumns();
|
||||||
Display strings = lines.toDisplay();
|
Display strings = lines.toDisplay();
|
||||||
|
|
||||||
|
String url = arg.get("URL", 0);
|
||||||
|
final UrlBuilder b = new UrlBuilder(diagram.getSkinParam().getValue("topurl"), UrlMode.STRICT);
|
||||||
Url u = null;
|
Url u = null;
|
||||||
if (strings.size() > 0) {
|
if (url != null) {
|
||||||
final UrlBuilder urlBuilder = new UrlBuilder(diagram.getSkinParam().getValue("topurl"), UrlMode.STRICT);
|
u = b.getUrl(url);
|
||||||
u = urlBuilder.getUrl(strings.get(0).toString());
|
|
||||||
}
|
|
||||||
if (u != null) {
|
|
||||||
strings = strings.subList(1, strings.size());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final HColor backColorGeneral = null;
|
final HColor backColorGeneral = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user