Skip to content

Commit

Permalink
feat: Improve handling of empty lines in in=lijes
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaguiar committed Jul 6, 2024
1 parent 12aaec7 commit 70d8632
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/include/inputFns.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ var _inputFns = new Map([
_linesvisual_header = [], lastPos = 0
if (isUnDef(params.linesvisualsepre)) params.linesvisualsepre = " \\s+"
r.split(new RegExp(params.linesvisualsepre)).forEach(h => {
if (h.trim().length == 0) return
_linesvisual_header.push(h)
let _mr = r.substring(lastPos).match(new RegExp(ow.format.escapeRE(h) + "(" + params.linesvisualsepre + "|$)"))
if (!isNull(_mr) && isDef(_mr.index)) {
Expand Down

0 comments on commit 70d8632

Please sign in to comment.