Angus Leeming <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: >> Angus> return int(lyx::count(str.begin(), str.end(),'\n') + 1); >> Angus> How many lines in: "foo\nbar\nbaz" ? >> >> Two (that is, two new lines have been created). It is not the lines >> that are counted, but the carriage returns. > | Ahhh. Thank you.
Note that it is the number of lines written to the latex file that matters. so envirs (etc) must be taken into account. -- Lgb