// redundant "Chapter x: " in front of it, or "-" (as in
// "Chapter 5: - Fun!" after the ": " was automatically added)
String chapterName = processPara(name).getContent().trim();
- for (String lang : Instance.getConfig().getString(Config.CHAPTER)
- .split(",")) {
+ for (String lang : Instance.getConfig().getList(Config.CONF_CHAPTER)) {
String chapterWord = Instance.getConfig().getStringX(
- Config.CHAPTER, lang);
+ Config.CONF_CHAPTER, lang);
if (chapterName.startsWith(chapterWord)) {
chapterName = chapterName.substring(chapterWord.length())
.trim();
// try for files
if (source != null) {
try {
-
String relPath = null;
String absPath = null;
try {