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

adding rtl function for the sheet #172

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

Conversation

dunialmasmari
Copy link

No description provided.

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";

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.

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);

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?

@memory-tapes
Copy link

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.

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