diff options
| author | Marat Radchenko <marat@slonopotamus.org> | 2022-12-20 15:28:53 +0300 |
|---|---|---|
| committer | Marat Radchenko <marat@slonopotamus.org> | 2022-12-20 15:28:53 +0300 |
| commit | c39d2159a8c329e2e2179a12c6cd7f4b39898f74 (patch) | |
| tree | d200cb486bdeaed72e20f5a05a7004e2c6fe0f09 /lib | |
| parent | 8f67a418b9bb6d18daac78cb0871d43db62ac8ce (diff) | |
compress CSS
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor-epub3/converter.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor-epub3/converter.rb b/lib/asciidoctor-epub3/converter.rb index f469ec0..7843c4d 100644 --- a/lib/asciidoctor-epub3/converter.rb +++ b/lib/asciidoctor-epub3/converter.rb @@ -1611,7 +1611,7 @@ body > svg { # match CSS font urls in the forms of: # src: url(../fonts/notoserif-regular-latin.ttf); # src: url(../fonts/notoserif-regular-latin.ttf) format("truetype"); - font_list = font_css.scan(/url\(\.\.\/([^)]+\.ttf)\)/).flatten + font_list = font_css.scan(/url\(\.\.\/([^)]+?\.ttf)\)/).flatten [font_list, font_css] end @@ -1619,7 +1619,7 @@ body > svg { def load_css_file filename template = File.read filename load_paths = [File.dirname(filename)] - sass_engine = Sass::Engine.new template, syntax: :scss, cache: false, load_paths: load_paths, style: :expanded + sass_engine = Sass::Engine.new template, syntax: :scss, cache: false, load_paths: load_paths, style: :compressed sass_engine.render end |
