fixed Hashtag causing tex gen issues

This commit is contained in:
Jonas Werner 2025-03-23 15:22:52 +01:00
parent 11059d08f0
commit 53bade28e9

View file

@ -163,6 +163,7 @@ public class TeXUtil {
// Format tex string to UTF-8
tex = new String(tex.getBytes("UTF-8"));
tex = tex.replaceAll("#", "\\\\#"); // Replace all # with \#
tex = tex.replaceAll("[^\\x00-\\x7F]", ""); // Replace all non-ASCII characters
// Local datetime stamp