Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for workbook rels file paths and case #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

spekode
Copy link

@spekode spekode commented Apr 24, 2015

Workbook relationship target paths were being generated with
relative paths including "xl/", Numbers and LibreOffice didn't like
this. The sharedStrings target was all lower-case, they also didn't like
this.

Workbook relationship target paths were being generated with
relative paths including "xl/", Numbers and LibreOffice didn't like
this. The sharedStrings target was all lower-case, they also didn't like
this.

def relative_path
"xl/worksheets/sheet#{ndx}.xml"
"xl/worksheets/#{filename}"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spekode here you modify #relative_path, but in your changes to #workbook_rels you don't use it ... intentional?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seamusabshere absolute_path builds from relative_path, it seemed logical to build relative_path from filename.

@seamusabshere
Copy link
Owner

@spekode also how does this relate to #12 ?

@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
<Relationship Id="rId0" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedstrings.xml"/>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seamusabshere re: #12 this is the only reference to "sharedstrings.xml" (all lower-case) that remains.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants