mirror of
https://github.com/octoleo/plantuml.git
synced 2024-12-22 02:49:06 +00:00
fix: improve pipemap option
https://github.com/plantuml/plantuml/issues/1429
This commit is contained in:
parent
92c5183386
commit
892dd6c8e9
@ -1,4 +1,4 @@
|
||||
# Warning, "version" should be the same in gradle.properties and Version.java
|
||||
# Any idea anyone how to magically synchronize those :-) ?
|
||||
version = 1.2023.8
|
||||
version = 1.2023.9beta1
|
||||
org.gradle.workers.max = 3
|
@ -53,6 +53,7 @@ import net.sourceforge.plantuml.core.DiagramDescription;
|
||||
import net.sourceforge.plantuml.error.PSystemError;
|
||||
import net.sourceforge.plantuml.preproc.Defines;
|
||||
import net.sourceforge.plantuml.security.SFile;
|
||||
import net.sourceforge.plantuml.url.CMapData;
|
||||
|
||||
public class Pipe {
|
||||
// ::remove file when __CORE__
|
||||
@ -124,9 +125,10 @@ public class Pipe {
|
||||
// https://forum.plantuml.net/10049/2019-pipemap-diagrams-containing-links-give-zero-exit-code
|
||||
// We don't check errors
|
||||
error.goOk();
|
||||
if (result == null)
|
||||
ps.println();
|
||||
else
|
||||
if (result == null) {
|
||||
final CMapData empty = new CMapData();
|
||||
ps.println(empty.asString("plantuml"));
|
||||
} else
|
||||
ps.println(result);
|
||||
|
||||
}
|
||||
|
@ -50,7 +50,7 @@ public class TimeTickBuilder {
|
||||
|
||||
public static IRegex expressionAtWithoutArobase(String name) {
|
||||
return new RegexOr( //
|
||||
new RegexLeaf(name + "CODE", ":([%pLN_.]+)([-+]\\d+)?"), //
|
||||
new RegexLeaf(name + "CODE", ":([%pLN_.]+)([-+][.\\d]+)?"), //
|
||||
new RegexLeaf(name + "DATE", "(\\d+)/(\\d+)/(\\d+)"), //
|
||||
new RegexLeaf(name + "HOUR", "(\\d+):(\\d+):(\\d+)"), //
|
||||
new RegexLeaf(name + "DIGIT", "(\\+?)(-?\\d+\\.?\\d*)"), //
|
||||
|
@ -46,7 +46,7 @@ public class Version {
|
||||
|
||||
// Warning, "version" should be the same in gradle.properties and Version.java
|
||||
// Any idea anyone how to magically synchronize those :-) ?
|
||||
private static final String version = "1.2023.8";
|
||||
private static final String version = "1.2023.9beta1";
|
||||
|
||||
public static String versionString() {
|
||||
return version;
|
||||
|
Loading…
Reference in New Issue
Block a user