lib/isodoc/generic/word_convert.rb in metanorma-generic-1.7.2 vs lib/isodoc/generic/word_convert.rb in metanorma-generic-1.7.3
- old
+ new
@@ -30,11 +30,11 @@
headerfont: (
options[:script] == "Hans" ? '"SimHei",sans-serif' :
configuration.word_headerfont || '"Arial",sans-serif'
),
monospacefont: configuration.word_monospacefont || '"Courier New",monospace'
- }
+ }.transform_values { |v| v&.empty? ? nil : v }
end
def default_file_locations(options)
{
wordstylesheet: baselocation(configuration.wordstylesheet) ||
@@ -49,17 +49,11 @@
html_doc_path("word_generic_intro.html"),
i18nyaml: (configuration.i18nyaml.is_a?(String) ?
baselocation(configuration.i18nyaml) : nil),
ulstyle: "l3",
olstyle: "l2",
- }
+ }.transform_values { |v| v&.empty? ? nil : v }
end
-
-=begin
- def configuration
- Metanorma::Generic.configuration
- end
-=end
include BaseConvert
include Init
end
end