asciidoctor-pdf 2.3.1 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d88e98bb4e7e4afe22f1911c28813edbfe65af757b2cfb5899c754aa811ac12
4
- data.tar.gz: 931e8ad9378ec457be0566cae2a43d5dddce06d5f821251bf842fc429b689a08
3
+ metadata.gz: 8eae246bb9ba9b068763fadb7bc2901bc197ab65ca6cc49b8e3c3b3d36441aa9
4
+ data.tar.gz: 9411f0b4bf09f4a7ab21d24e8ab15d715fb8a5458a46efb78d342efeb9de4299
5
5
  SHA512:
6
- metadata.gz: 2b530895e85531f879ad2bf1b8672281e0bc4af53cba666817d5d01349022fc0beaffe758b9def65e82db79f7e86c6bed9fcb70688e65ada7ecb993b5597f748
7
- data.tar.gz: d97b859cccfb0ff54e65f4ccae7fc4a604c3ccb33a2727d08e2a523896ec045777999397ee506959173b404d13d2b253456943ef93b390f192ed831f4418a170
6
+ metadata.gz: b069fca84205e6e28b4915ed973a21d246c8a3ebbe6e80cca2c3c8155633312f95f3abbfbb24f5f5a5e6c6c304e76ac7bb34e453ef754a1cfd3ee89b99315448
7
+ data.tar.gz: c97b461899b43c92e350a7b00ba258b9fe216ddac4739d7a1370628c68a3dac263afb896e2827a019c8219f4962c7bf766dc62850efa64b3b07eef7470f90543
data/CHANGELOG.adoc CHANGED
@@ -5,6 +5,16 @@
5
5
  This document provides a high-level view of the changes to the {project-name} by release.
6
6
  For a detailed view of what has changed, refer to the {url-repo}/commits/main[commit history] on GitHub.
7
7
 
8
+ == 2.3.2 (2022-09-17) - @mojavelinux
9
+
10
+ Improvements::
11
+
12
+ * provide fallback value for `base-font-size` theme key before processing keys (#2342)
13
+
14
+ === Details
15
+
16
+ {url-repo}/releases/tag/v2.3.2[git tag] | {url-repo}/compare/v2.3.1\...v2.3.2[full diff]
17
+
8
18
  == 2.3.1 (2022-09-17) - @mojavelinux
9
19
 
10
20
  Improvements::
data/README.adoc CHANGED
@@ -1,6 +1,6 @@
1
1
  = Asciidoctor PDF: A native PDF converter for AsciiDoc
2
2
  Dan Allen <https://github.com/mojavelinux[@mojavelinux]>; Sarah White <https://github.com/graphitefriction[@graphitefriction]>
3
- v2.3.1, 2022-09-17
3
+ v2.3.2, 2022-09-17
4
4
  // Settings:
5
5
  :experimental:
6
6
  :idprefix:
@@ -557,7 +557,7 @@ module Asciidoctor
557
557
  def prepare_theme theme
558
558
  theme.base_border_color = nil if theme.base_border_color == 'transparent'
559
559
  theme.base_font_color ||= '000000'
560
- theme.base_font_size ||= 12
560
+ theme.base_font_family ||= 'Helvetica'
561
561
  theme.base_font_style = theme.base_font_style&.to_sym || :normal
562
562
  theme.page_numbering_start_at ||= 'body'
563
563
  theme.running_content_start_at ||= 'body'
@@ -78,12 +78,11 @@ module Asciidoctor
78
78
  if theme_path == BaseThemePath
79
79
  load_base_theme
80
80
  else
81
- theme_data = load_file theme_path, nil, theme_dir
81
+ theme_data = load_file theme_path, (::OpenStruct.new base_font_size: 12), theme_dir
82
82
  unless (::File.dirname theme_path) == ThemesDir
83
83
  theme_data.base_text_align ||= 'left'
84
84
  theme_data.base_line_height ||= 1
85
85
  theme_data.base_font_color ||= '000000'
86
- theme_data.base_font_size ||= 12
87
86
  theme_data.code_font_family ||= (theme_data.codespan_font_family || 'Courier')
88
87
  theme_data.conum_font_family ||= (theme_data.codespan_font_family || 'Courier')
89
88
  if (heading_font_family = theme_data.heading_font_family)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Asciidoctor
4
4
  module PDF
5
- VERSION = '2.3.1'
5
+ VERSION = '2.3.2'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asciidoctor-pdf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Allen