aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta/metadoc_from_src.d
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2019-10-22 19:32:45 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2019-11-18 14:59:47 -0500
commit02714184258c9be072857ddcc03bc114b2e843d1 (patch)
tree9818170940f4db2334c54059869819f07f57a10d /src/doc_reform/meta/metadoc_from_src.d
parentmultilingual pods, zipped source (diff)
cosmetic
Diffstat (limited to 'src/doc_reform/meta/metadoc_from_src.d')
-rw-r--r--src/doc_reform/meta/metadoc_from_src.d10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/doc_reform/meta/metadoc_from_src.d b/src/doc_reform/meta/metadoc_from_src.d
index ec1e01a..f5e0b81 100644
--- a/src/doc_reform/meta/metadoc_from_src.d
+++ b/src/doc_reform/meta/metadoc_from_src.d
@@ -313,7 +313,7 @@ template DocReformDocAbstraction() {
char[][] markup_sourcefile_content,
CMM conf_make_meta,
Opt opt_action,
- Mf manifest_matter,
+ Mf manifested,
bool _new_doc
) {
static auto rgx = Rgx();
@@ -1777,7 +1777,7 @@ template DocReformDocAbstraction() {
return images_;
}
string[] segnames_0_to_4;
- auto _image_dimensions(O,M)(O obj, M manifest_matter) {
+ auto _image_dimensions(O,M)(O obj, M manifested) {
if (obj.has.image_without_dimensions) {
import std.math;
import imageformats;
@@ -1786,9 +1786,9 @@ template DocReformDocAbstraction() {
int max_width = 640;
foreach (m; obj.text.matchAll(rgx.inline_image_without_dimensions)) {
debug(images) {
- writeln(manifest_matter.src.image_dir_path ~ "/" ~ m["img"]);
+ writeln(manifested.src.image_dir_path ~ "/" ~ m["img"]);
}
- read_image_info(manifest_matter.src.image_dir_path ~ "/" ~ m["img"], w, h, chans);
+ read_image_info(manifested.src.image_dir_path ~ "/" ~ m["img"], w, h, chans);
// calculate, decide max width and proportionally reduce to keep w & h within it
debug(images) {
writeln("width: ", w, ", height: ", h);
@@ -1923,7 +1923,7 @@ template DocReformDocAbstraction() {
obj = obj.obj_heading_ancestors(lv_ancestors_txt);
} else if (obj.metainfo.is_a == "para") {
_images ~= extract_images(obj.text);
- obj = _image_dimensions(obj, manifest_matter);
+ obj = _image_dimensions(obj, manifested);
}
obj = _links(obj);
}