aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/doc_reform/meta
diff options
context:
space:
mode:
Diffstat (limited to 'src/doc_reform/meta')
-rw-r--r--src/doc_reform/meta/conf_make_meta_yaml.d42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/doc_reform/meta/conf_make_meta_yaml.d b/src/doc_reform/meta/conf_make_meta_yaml.d
index ff0bcf5..5af22ad 100644
--- a/src/doc_reform/meta/conf_make_meta_yaml.d
+++ b/src/doc_reform/meta/conf_make_meta_yaml.d
@@ -518,16 +518,6 @@ template contentYAMLtoSpineStruct() {
case "a4.landscape":
_selected_sizes ~= _size;
break;
- case "a5":
- _selected_sizes ~= "a5.portrait";
- _selected_sizes ~= "a5.landscape";
- break;
- case "a5.portrait":
- _selected_sizes ~= _size;
- break;
- case "a5.landscape":
- _selected_sizes ~= _size;
- break;
case "b4":
_selected_sizes ~= "b4.portrait";
_selected_sizes ~= "b4.landscape";
@@ -538,6 +528,16 @@ template contentYAMLtoSpineStruct() {
case "b4.landscape":
_selected_sizes ~= _size;
break;
+ case "a5":
+ _selected_sizes ~= "a5.portrait";
+ _selected_sizes ~= "a5.landscape";
+ break;
+ case "a5.portrait":
+ _selected_sizes ~= _size;
+ break;
+ case "a5.landscape":
+ _selected_sizes ~= _size;
+ break;
case "letter":
_selected_sizes ~= "letter.portrait";
_selected_sizes ~= "letter.landscape";
@@ -563,24 +563,24 @@ template contentYAMLtoSpineStruct() {
}
return _selected_sizes;
}
+ string _set_papersize;
if (_opt_action.latex_papersize.length > 0) {
- _struct_composite.conf.set_papersize = selected_papersize(_opt_action.latex_papersize);
- } else if (
- "default" in _yaml
- && _yaml["default"].type.sequence
- && _yaml["default"].type.mapping
- && _yaml["default"].tag.match(rgx.yaml_tag_is_map)
- ) {
+ _set_papersize
+ = _opt_action.latex_papersize;
+ } else {
+ _set_papersize
+ = (_cfg.default_papersize.empty)
+ ? "a4,letter.portrait"
+ : _cfg.default_papersize;
if ("papersize" in _yaml["default"]
&& _yaml["default"]["papersize"].type.string
&& _yaml["default"]["papersize"].tag.match(rgx.yaml_tag_is_str)
) {
- _struct_composite.conf.set_papersize = selected_papersize(_yaml["default"]["papersize"].get!string);
+ _set_papersize
+ = _yaml["default"]["papersize"].get!string;
}
}
- if (_struct_composite.conf.set_papersize.length == 0) {
- _struct_composite.conf.set_papersize = ["a4.portrait", "a4.landscape"];
- }
+ _struct_composite.conf.set_papersize = selected_papersize(_set_papersize);
if (
"default" in _yaml
&& _yaml["default"].type.sequence