Update to latest Maruku. Fixes alt text bug.
This commit is contained in:
parent
632a9d90fc
commit
541ef91df4
2 changed files with 5 additions and 5 deletions
|
@ -75,7 +75,7 @@ module MaRuKu
|
||||||
slide_num += 1
|
slide_num += 1
|
||||||
@doc.attributes[:doc_prefix] = "s#{slide_num}"
|
@doc.attributes[:doc_prefix] = "s#{slide_num}"
|
||||||
|
|
||||||
puts "Slide #{slide_num}: " + slide.header_element.to_s
|
# puts "Slide #{slide_num}: " + slide.header_element.to_s
|
||||||
div = Element.new('div', presentation)
|
div = Element.new('div', presentation)
|
||||||
div.attributes['class'] = 'slide'
|
div.attributes['class'] = 'slide'
|
||||||
|
|
||||||
|
|
|
@ -79,8 +79,8 @@ module MaRuKu; module Out; module HTML
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
Xhtml10strict = "
|
Xhtml10strict =
|
||||||
<?xml version='1.0' encoding='utf-8'?>
|
"<?xml version='1.0' encoding='utf-8'?>
|
||||||
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
|
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
|
||||||
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n"
|
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>\n"
|
||||||
|
|
||||||
|
@ -717,7 +717,7 @@ of the form `#ff00ff`.
|
||||||
url = ref[:url]
|
url = ref[:url]
|
||||||
title = ref[:title]
|
title = ref[:title]
|
||||||
a.attributes['src'] = url.to_s
|
a.attributes['src'] = url.to_s
|
||||||
a.attributes['alt'] = title.to_s if not a.attributes['alt']
|
a.attributes['alt'] = children_to_s
|
||||||
else
|
else
|
||||||
maruku_error"Could not find id = #{id.inspect} for\n #{self.inspect}"
|
maruku_error"Could not find id = #{id.inspect} for\n #{self.inspect}"
|
||||||
tell_user "Could not create image with ref_id = #{id.inspect};"+
|
tell_user "Could not create image with ref_id = #{id.inspect};"+
|
||||||
|
@ -737,7 +737,7 @@ of the form `#ff00ff`.
|
||||||
title = self.title
|
title = self.title
|
||||||
a = create_html_element 'img'
|
a = create_html_element 'img'
|
||||||
a.attributes['src'] = url.to_s
|
a.attributes['src'] = url.to_s
|
||||||
a.attributes['alt'] = title.to_s if not a.attributes['alt']
|
a.attributes['alt'] = children_to_s
|
||||||
return a
|
return a
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue