diff options
author | Ralph Amissah <ralph@amissah.com> | 2010-03-22 20:08:45 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2010-03-22 20:08:45 -0400 |
commit | f2e312f596b0a8d4383dd97e458adf9b3d6c1a52 (patch) | |
tree | 4e3ffbc2742c312af81a91740ba5ab0dbc66d58a /lib | |
parent | odf, shared_xml, texpdf: grouped bulleted text (diff) |
shared_matadata, odf metadata use <br /> [prevent <br> breakage]
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v2/shared_metadata.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v2/shared_metadata.rb b/lib/sisu/v2/shared_metadata.rb index 7c8cc971..f39b2f79 100644 --- a/lib/sisu/v2/shared_metadata.rb +++ b/lib/sisu/v2/shared_metadata.rb @@ -474,6 +474,7 @@ WOK def meta_para url_brace=SiSU_Viz::Skin.new.url_decoration if @inf.class==String + @inf.gsub!(/<br>/,'<br />') @inf.gsub!(/#{Mx[:url_o]}_(\S+?)#{Mx[:url_c]}/, '<text:a xlink:type="simple" xlink:href="\1">\1</text:a>') #http ftp matches escaped, no decoration @inf.gsub!(/(#{Mx[:lnk_c]})#{Mx[:url_o]}(\S+?)#{Mx[:url_c]}/, @@ -484,7 +485,7 @@ WOK %{#{url_brace.xml_open}<text:a xlink:type="simple" xlink:href="mailto:\\1">\\1</text:a>#{url_brace.xml_close}}) if @inf !~/http:\/\// # improve upon, document crash where url contains '@' symbol end <<WOK -<text:p text:style-name="P1">#{@tag.capitalize}: #{@inf}</text:p>} +<text:p text:style-name="P1">#{@tag.capitalize}: #{@inf}</text:p> WOK end def metadata |