Skip to content

adding rtl function for the sheet#172

Open
dunialmasmari wants to merge 1 commit into
protobi:masterfrom
dunialmasmari:master
Open

adding rtl function for the sheet#172
dunialmasmari wants to merge 1 commit into
protobi:masterfrom
dunialmasmari:master

Conversation

@dunialmasmari

Copy link
Copy Markdown

No description provided.

Comment thread xlsx.js
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";

Copy link
Copy Markdown

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.

Copy link
Copy Markdown

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?

Comment thread xlsx.js
});
o[o.length] = writextag('sheetViews', sheetView);
// o[o.length] = writextag('sheetViews', sheetView);
o[o.length] = write_ws_xml_sheetviews(ws, opts, idx, wb);

Copy link
Copy Markdown

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
Copy Markdown

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