-
Notifications
You must be signed in to change notification settings - Fork 416
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
adding rtl function for the sheet #172
base: master
Are you sure you want to change the base?
Conversation
function write_ws_xml_sheetviews(ws, opts, idx, wb) { | ||
var sview = ({workbookViewId:"0"}); | ||
// $FlowIgnore | ||
if((((wb||{}).Workbook||{}).Views||[])[0]) sview.rightToLeft = wb.Workbook.Views[0].RTL ? "1" : "0"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One-liners are the style of this project: but that is wrong and dangerous and hard to read. I am not a project owner, but this is something to consider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you explain in your pull (now 2 years stale) what this does, exactly?
@@ -7925,7 +7931,8 @@ function write_ws_xml(idx, opts, wb) { | |||
tabSelected: opts.tabSelected === undefined ? '0' : opts.tabSelected, // see issue #26, need to set WorkbookViews if this is set | |||
workbookViewId: opts.workbookViewId === undefined ? '0' : opts.workbookViewId | |||
}); | |||
o[o.length] = writextag('sheetViews', sheetView); | |||
// o[o.length] = writextag('sheetViews', sheetView); | |||
o[o.length] = write_ws_xml_sheetviews(ws, opts, idx, wb); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does uncommenting this do?
I think this is a great idea. This project may just be too old to really have further development. Lack of tests being the major factor. I would love to fork this myself, and have fixed several local bugs that will never make it upstream. |
No description provided.