1
0
mirror of https://github.com/octoleo/plantuml.git synced 2024-09-22 12:09:03 +00:00

Compare commits

..

No commits in common. "1188a05a608d2332f72c2e5ca46999270b9f33f7" and "a0be1ed677c45b3f21ba7aebd8173789df1f6bd4" have entirely different histories.

View File

@ -602,7 +602,7 @@ public class ASCIIMathTeXImg {
case CONST:
str = AMremoveCharsAndBlanks(str, symbol.input.length());
String texsymbol = AMTgetTeXsymbol(symbol);
if (texsymbol.isEmpty() || texsymbol.charAt(0) == '\\' || symbol.tag.equals("mo"))
if (texsymbol.charAt(0) == '\\' || symbol.tag.equals("mo"))
return new String[] { texsymbol, str };
else {
return new String[] { "{" + texsymbol + "}", str };
@ -676,7 +676,7 @@ public class ASCIIMathTeXImg {
if (result[0] == null)
return new String[] { "{" + AMTgetTeXsymbol(symbol) + "}", str };
if (symbol.hasFlag("func")) { // functions hack
st = "" + (str.isEmpty() ? "" : str.charAt(0));
st = "" + str.charAt(0);
if (st.equals("^") || st.equals("_") || st.equals("/") || st.equals("|") || st.equals(",")
|| (symbol.input.length() == 1 && symbol.input.matches("\\w") && !st.equals("("))) {
return new String[] { "{" + AMTgetTeXsymbol(symbol) + "}", str };