Fix default value for display-header-footer

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/4/head v0.30.4
trivernis 4 years ago
parent 293fb52aaa
commit b379fcbea9
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -1908,7 +1908,7 @@ checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8"
[[package]] [[package]]
name = "snekdown" name = "snekdown"
version = "0.30.3" version = "0.30.4"
dependencies = [ dependencies = [
"asciimath-rs", "asciimath-rs",
"base64 0.12.3", "base64 0.12.3",

@ -1,6 +1,6 @@
[package] [package]
name = "snekdown" name = "snekdown"
version = "0.30.3" version = "0.30.4"
authors = ["trivernis <trivernis@protonmail.com>"] authors = ["trivernis <trivernis@protonmail.com>"]
edition = "2018" edition = "2018"
license-file = "LICENSE" license-file = "LICENSE"

@ -1,7 +1,7 @@
use crate::elements::MetadataValue; use crate::elements::MetadataValue;
use crate::references::configuration::keys::{ use crate::references::configuration::keys::{
BIB_REF_DISPLAY, META_LANG, PDF_FOOTER_TEMPLATE, PDF_HEADER_TEMPLATE, PDF_MARGIN_BOTTOM, BIB_REF_DISPLAY, META_LANG, PDF_DISPLAY_HEADER_FOOTER, PDF_FOOTER_TEMPLATE,
PDF_MARGIN_TOP, PDF_HEADER_TEMPLATE, PDF_MARGIN_BOTTOM, PDF_MARGIN_TOP,
}; };
use crate::references::templates::Template; use crate::references::templates::Template;
use serde::export::TryFrom; use serde::export::TryFrom;
@ -83,7 +83,11 @@ impl Default for Configuration {
self_config.set(META_LANG, Value::String("en".to_string())); self_config.set(META_LANG, Value::String("en".to_string()));
self_config.set(PDF_MARGIN_BOTTOM, Value::Float(0.5)); self_config.set(PDF_MARGIN_BOTTOM, Value::Float(0.5));
self_config.set(PDF_MARGIN_TOP, Value::Float(0.5)); self_config.set(PDF_MARGIN_TOP, Value::Float(0.5));
self_config.set(PDF_HEADER_TEMPLATE, Value::String("<div/>".to_string())); self_config.set(PDF_DISPLAY_HEADER_FOOTER, Value::Bool(true));
self_config.set(
PDF_HEADER_TEMPLATE,
Value::String("<div></div>".to_string()),
);
self_config.set( self_config.set(
PDF_FOOTER_TEMPLATE, PDF_FOOTER_TEMPLATE,
Value::String( Value::String(

Loading…
Cancel
Save