mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-17 16:42:41 +00:00
Off by 1 error
This commit is contained in:
@@ -192,7 +192,7 @@ const Editor = createClass({
|
|||||||
if((this.props.renderer == 'legacy' && line.includes('\\page')) ||
|
if((this.props.renderer == 'legacy' && line.includes('\\page')) ||
|
||||||
(this.props.renderer == 'V3' && line.match(/^(?=\\page(?:{[^\n{}]+})?$)/))) {
|
(this.props.renderer == 'V3' && line.match(/^(?=\\page(?:{[^\n{}]+})?$)/))) {
|
||||||
|
|
||||||
if(lineNumber > 1) // Since \page is optional on first line of document,
|
if(lineNumber > 0) // Since \page is optional on first line of document,
|
||||||
editorPageCount += 1; // don't use it to increment page count; stay at 1
|
editorPageCount += 1; // don't use it to increment page count; stay at 1
|
||||||
|
|
||||||
// add back the original class 'background' but also add the new class '.pageline'
|
// add back the original class 'background' but also add the new class '.pageline'
|
||||||
|
|||||||
Reference in New Issue
Block a user