Skip to content

Commit

Permalink
update docs and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
natergj committed Sep 16, 2018
1 parent 968d004 commit 0ec1c0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,8 @@ ws.column(4).group(1, true);
ws.column(5).group(1, true);
```

Multiple groupings can be nested as demonstrated in [this gist](https://gist.github.com/natergj/b548fe8d2ea00c5b9fa94597c2cf9fd2)

## Cells

The cell method accesses a single cell or range of cells to manipulate
Expand Down
4 changes: 2 additions & 2 deletions source/lib/worksheet/worksheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class Worksheet {
*/
addPageBreak(type, position) {
if ((type !== 'row' && type !== 'column') || typeof position !== 'number') {
this.wb.logger.warn('something invalid', type, position);
this.wb.logger.warn('invalid option sent to addPageBreak method', type, position);
return;
}
if (this.pageBreaks[type].indexOf(position) < 0) {
Expand All @@ -283,7 +283,7 @@ class Worksheet {
typeof endRow !== 'number' ||
typeof endCol !== 'number'
) {
this.wb.logger.warn('invalid option sent to addPrintArea method');
this.wb.logger.warn('invalid option sent to setPrintArea method');
return;
}
this.printArea = {
Expand Down

0 comments on commit 0ec1c0f

Please sign in to comment.