From e5d3440be5a3925ec932df1a32c6b6e48f6e9b5b Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Thu, 24 Mar 2011 20:07:41 -0400 Subject: v2, v3: texpdf bugfix, where map_nametags not found, drop tag, rather than crash * Debian-live, live-manual (Ben Armstrong, chals?, reported new bug in a number of translations (that crashed the pdf generator). It turns out where map_nametags is not found the document crashes. Fix. --- lib/sisu/v3/texpdf_format.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sisu/v3/texpdf_format.rb') diff --git a/lib/sisu/v3/texpdf_format.rb b/lib/sisu/v3/texpdf_format.rb index a91095e8..b235e1fc 100644 --- a/lib/sisu/v3/texpdf_format.rb +++ b/lib/sisu/v3/texpdf_format.rb @@ -421,7 +421,7 @@ module SiSU_TeX_Pdf map_nametags[url][:ocn] else nil end - ocn_lnk=(url=~/^\d+$/ ? url : (map_nametags[url][:ocn])) + ocn_lnk=(url=~/^\d+$/ ? url : ocn_lnk) if ocn_lnk and not ocn_lnk.empty? idx \ ? (str.sub!(rgx_url_internal,"\\hyperlink{#{ocn_lnk}}{#{link}}")) \ -- cgit v1.2.3