summaryrefslogtreecommitdiffhomepage
path: root/test/workbook
diff options
context:
space:
mode:
authorStefan Daschek <[email protected]>2012-11-12 17:47:27 +0100
committerStefan Daschek <[email protected]>2012-11-12 17:47:27 +0100
commit2fa7e78e8e06758b68317b76d770a5673c93d99b (patch)
treeda710135051b155b065ce2b26387d2c84654e9c6 /test/workbook
parent49638e7b4120c22a9a90a6aa967f636a7056022e (diff)
downloadcaxlsx-2fa7e78e8e06758b68317b76d770a5673c93d99b.tar.gz
caxlsx-2fa7e78e8e06758b68317b76d770a5673c93d99b.zip
Escape URLs used as target for hyperlinks.
Up to now, when using an URL containing a & character, the generated XML was invalid.
Diffstat (limited to 'test/workbook')
-rw-r--r--test/workbook/worksheet/tc_worksheet_hyperlink.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/workbook/worksheet/tc_worksheet_hyperlink.rb b/test/workbook/worksheet/tc_worksheet_hyperlink.rb
index ad993e62..278c5add 100644
--- a/test/workbook/worksheet/tc_worksheet_hyperlink.rb
+++ b/test/workbook/worksheet/tc_worksheet_hyperlink.rb
@@ -5,7 +5,7 @@ class TestWorksheetHyperlink < Test::Unit::TestCase
p = Axlsx::Package.new
wb = p.workbook
@ws = wb.add_worksheet
- @options = { :location => 'https://github.com/randym/axlsx', :tooltip => 'axlsx', :ref => 'A1', :display => 'AXSLX', :target => :internal }
+ @options = { :location => 'https://github.com/randym/axlsx?foo=1&bar=2', :tooltip => 'axlsx', :ref => 'A1', :display => 'AXSLX', :target => :internal }
@a = @ws.add_hyperlink @options
end