Re: Syntax error if paragraph contains more than 1 printable character

2023-12-14 Thread James K. Lowden
On Wed, 13 Dec 2023 19:01:22 -0500 Steve Litt wrote: > >.+/\n { ... return LINE; } > >(\n[[:blank:]]*){2,} { return SEP; } // two or more blank lines > >\n { /* ignore */ } > > Thanks James, this looks great! You're welcome. It occurs to me that .+/\n is the same as .

Re: Syntax error if paragraph contains more than 1 printable character

2023-12-14 Thread Steve Litt
James K. Lowden said on Wed, 13 Dec 2023 12:42:20 -0500 >Rather than remove trailing blanks from the input, I would remove them >in flex. The problem can be solved with regular expressions but, >since we're only matching one value, it's easily done in an action: > > .+ { >