metanorma 1.3.9 → 1.3.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metanorma/collection_fileprocess.rb +1 -1
- data/lib/metanorma/collection_renderer.rb +5 -1
- data/lib/metanorma/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a9807dfd686937050274493eff01bd863f032f237dad7baff1c027a0fa75561
|
4
|
+
data.tar.gz: 901710c9e8e1ac28c417d859ded7bc930da149ff01220319053583eb518751d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afe50ca043b69ba258442f8061011492cd53b272c42cd1b386da20781df61348dca788147debac44d4477d3381725f44e956881417d38c8a60cfcec7835de756
|
7
|
+
data.tar.gz: 0e1696dab391b92724517eadfc307d7cd1392ad533906c23e427bafc31cf88232dd8fc31a47c2d179d8057de42165da285bfc8a990631a58d4b989fb7dda22d9
|
@@ -49,7 +49,7 @@ module Metanorma
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def add_section_split_cover(files, manifest, ident)
|
52
|
-
cover = section_split_cover(manifest, ident)
|
52
|
+
cover = section_split_cover(manifest, dir_name_cleanse(ident))
|
53
53
|
files[ident][:out_path] = cover
|
54
54
|
{ attachment: true, index: false, out_path: cover,
|
55
55
|
ref: File.join(File.dirname(manifest.file), cover) }
|
@@ -33,7 +33,7 @@ module Metanorma
|
|
33
33
|
# output processor for flavour
|
34
34
|
@isodoc = isodoc
|
35
35
|
|
36
|
-
@outdir = options[:output_folder]
|
36
|
+
@outdir = dir_name_cleanse(options[:output_folder])
|
37
37
|
@coverpage = options[:coverpage]
|
38
38
|
@format = Util.sort_extensions_execution(options[:format])
|
39
39
|
@compile_options = options[:compile] || {}
|
@@ -51,6 +51,10 @@ module Metanorma
|
|
51
51
|
FileUtils.mkdir_p @outdir
|
52
52
|
end
|
53
53
|
|
54
|
+
def dir_name_cleanse(name)
|
55
|
+
name.gsub(/[<>:"|?*]/, "_")
|
56
|
+
end
|
57
|
+
|
54
58
|
# @param col [Metanorma::Collection] XML collection
|
55
59
|
# @param options [Hash]
|
56
60
|
# @option options [String] :coverpage cover page HTML (Liquid template)
|
data/lib/metanorma/version.rb
CHANGED