lib/asciidoctor-epub3/packager.rb in asciidoctor-epub3-1.0.0.alpha.1 vs lib/asciidoctor-epub3/packager.rb in asciidoctor-epub3-1.0.0.alpha.2
- old
+ new
@@ -6,11 +6,11 @@
module Asciidoctor
module Epub3
module GepubBuilderMixin
DATA_DIR = ::File.expand_path(::File.join ::File.dirname(__FILE__), '..', '..', 'data')
SAMPLES_DIR = ::File.join DATA_DIR, 'samples'
- WordJoiner = Epub3::WordJoiner
+ WordJoinerRx = Epub3::WordJoinerRx
FromHtmlSpecialCharsMap = ContentConverter::FromHtmlSpecialCharsMap
FromHtmlSpecialCharsRx = ContentConverter::FromHtmlSpecialCharsRx
CsvDelimiterRx = /\s*,\s*/
DefaultCoverImage = 'images/default-cover.png'
InlineImageMacroRx = /^image:(.*?)\[(.*?)\]$/
@@ -25,10 +25,10 @@
when :pcdata
doc.doctitle
when :plain
doc.doctitle(sanitize: true).gsub(FromHtmlSpecialCharsRx, FromHtmlSpecialCharsMap)
end
- title.gsub WordJoiner, ''
+ title.gsub WordJoinerRx, ''
end
def add_theme_assets doc
builder = self
format = @format