aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/io_in
diff options
context:
space:
mode:
authorRalph Amissah <ralph.amissah@gmail.com>2020-05-06 19:37:07 -0400
committerRalph Amissah <ralph.amissah@gmail.com>2020-05-20 11:27:26 -0400
commit37bae77e09df3a50947dd445acbcd19afa4ce17c (patch)
tree5d72931f398f45b1f567c10a0a3ed7bb199750bf /src/doc_reform/io_in
parentdoc abstraction, pith replaces obj_type_status (diff)
doc structure hash removed, replaced, unused
- doc abstraction changes (use of new associative array named "pith" with enum) replaces the redundant doc structure associative array
Diffstat (limited to 'src/doc_reform/io_in')
-rw-r--r--src/doc_reform/io_in/read_source_files.d15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/doc_reform/io_in/read_source_files.d b/src/doc_reform/io_in/read_source_files.d
index 349729d..dfb9b2c 100644
--- a/src/doc_reform/io_in/read_source_files.d
+++ b/src/doc_reform/io_in/read_source_files.d
@@ -173,41 +173,29 @@ template spineRawMarkupContent() {
char[][] markup_sourcefile_insert_content,
string fn_src
) {
- mixin spineRgxDocStructFlags;
char[][] contents_insert;
int code_block_status = 0;
enum codeBlock { off, curly, tic, }
- int[string] type = flags_type_init;
auto fn_pth_full = fn_src.match(rgx.src_pth_sst_or_ssm);
auto markup_src_file_path = fn_pth_full.captures[1];
foreach (line; markup_sourcefile_insert_content) {
if (code_block_status == codeBlock.curly) {
- type["header_make"] = 0;
- type["header_meta"] = 0;
if (line.matchFirst(rgx.block_curly_code_close)) {
code_block_status = codeBlock.off;
}
contents_insert ~= line;
} else if (line.matchFirst(rgx.block_curly_code_open)) {
code_block_status = codeBlock.curly;
- type["header_make"] = 0;
- type["header_meta"] = 0;
contents_insert ~= line;
} else if (code_block_status == codeBlock.tic) {
- type["header_make"] = 0;
- type["header_meta"] = 0;
if (line.matchFirst(rgx.block_tic_close)) {
code_block_status = codeBlock.off;
}
contents_insert ~= line;
} else if (line.matchFirst(rgx.block_tic_code_open)) {
code_block_status = codeBlock.tic;
- type["header_make"] = 0;
- type["header_meta"] = 0;
contents_insert ~= line;
} else if (auto m = line.match(rgx.insert_src_fn_ssi_or_sst)) {
- type["header_make"] = 0;
- type["header_meta"] = 0;
auto insert_fn = m.captures[2];
auto insert_sub_pth = m.captures[1];
auto fn_src_insert
@@ -238,8 +226,6 @@ template spineRawMarkupContent() {
- build image list, search for any image files to add to image list
+/
} else {
- type["header_make"] = 0;
- type["header_meta"] = 0;
contents_insert ~= line; // images to extract for image list?
if (_opt_action.source || _opt_action.pod) {
string[] _image_linelist = _extract_images(line);
@@ -261,7 +247,6 @@ template spineRawMarkupContent() {
string fn_src
) {
import std.algorithm;
- mixin spineRgxDocStructFlags;
char[][] contents;
int code_block_status = 0;
enum codeBlock { off, curly, tic, }