fix: formatting of plot-title in placeholder (#4702)

This commit is contained in:
Pierre Maurice Schwang
2025-07-24 20:50:23 +02:00
committed by GitHub
parent 0508a7f6b6
commit 1054018e1e

View File

@@ -63,4 +63,18 @@ public class PlotTitle {
return subtitle;
}
/**
* Provides a string representation of this plot title value (used in placeholders).
*
* @return the plot title representation in the format {@code "<title>" "<subtitle>"}
* @since TODO
*/
@Override
public String toString() {
return "\"%s\" \"%s\"".formatted(
this.title != null ? this.title : "",
this.subtitle != null ? this.subtitle : ""
);
}
}