aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/default_paths.org
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-07-09 18:25:00 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-10-17 19:07:20 -0400
commit703ddafbb14127db4b7b52bfada3d3d96e22754d (patch)
tree6ea5c66293da1e8e9579325e42411df820ad10be /org/default_paths.org
parent0.7.4 sqlite related, also some xml paths (diff)
cosmetic
Diffstat (limited to 'org/default_paths.org')
-rw-r--r--org/default_paths.org12
1 files changed, 2 insertions, 10 deletions
diff --git a/org/default_paths.org b/org/default_paths.org
index b1d6980..abc1d51 100644
--- a/org/default_paths.org
+++ b/org/default_paths.org
@@ -69,7 +69,7 @@ template PodManifest() {
_manifest_path = m.captures["podpath"];
}
} else {
- writeln("WARNING, issue with manifest_path: ", _pth); // remove?
+ writeln("WARNING, issue with manifest_path: ", _pth);
_manifest_path = null; // _manifest_path = "";
}
return _manifest_path;
@@ -158,11 +158,6 @@ template PathMatters() {
}
auto collection_root() {
auto _collection_root = asNormalizedPath(chainPath(_manifest.pod_manifest_path, "..")).array;
- if (auto m = (_collection_root).match(rgx.src_pth_pod_root)) {
- // consider testing for last dir in path name being pod, and giving warning if not
- } else {
- writeln("WARNING, collection_root not named \"pod\"");
- }
return _collection_root;
}
string manifest_filename() {
@@ -1270,9 +1265,6 @@ template DocReformPathsEPUB() {
return asNormalizedPath((out_pth.output_base).chainPath(base_dir)).array;
}
string base_filename(string fn_src) {
- return fn_src.baseName.stripExtension ~ "." ~ lng;
- }
- string base_filename(string fn_src) {
return fn_src.baseName.stripExtension;
}
string base_filename_epub(string fn_src) {
@@ -1291,7 +1283,7 @@ template DocReformPathsEPUB() {
return asNormalizedPath(doc_oebps.chainPath("image")).array;
}
string epub_file(string fn_src) {
- return asNormalizedPath(base.chainPath(base_filename(fn_src) ~ ".epub")).array;
+ return asNormalizedPath(base.chainPath(base_filename_epub(fn_src) ~ ".epub")).array;
}
string dirtop() {
return "".chainPath("").array;