From 8fb333ce2a22a067a2e4bdb205cd52f2c8e0f8ea Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 13 Sep 2010 15:05:57 -0400 Subject: epub, fix xhtml line-break in rights metadata, results in unreadable epub (Closes: #596736) * epub output not readable by all epub-reader software (Closes: #596736) (else epub output can be viewed in calibre, but not in fbreader or okular) --- lib/sisu/v2/epub_format.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/sisu/v2/epub_format.rb b/lib/sisu/v2/epub_format.rb index 350e6f2c..28fe7357 100644 --- a/lib/sisu/v2/epub_format.rb +++ b/lib/sisu/v2/epub_format.rb @@ -1041,7 +1041,8 @@ WOK end rights=if defined? @md.rights.all \ and @md.rights.all =~/\S+/ - %{\n #{@md.rights.all}} + rights=@md.rights.all.gsub(/
/,'
') + %{\n #{rights}} else '' end <© ') - %{

Rights: #{rights}

} + rghts=@md.rights.all.gsub(/
/,'
') + rghts=rghts.gsub(/^\s*Copyright\s+\(C\)/,'Copyright © ') + %{

Rights: #{rghts}

} end self end -- cgit v1.2.3