Le 28 janv. 2011 à 11:57, Enrico Forestieri a écrit : >> We should maybe have a tag 'Display 1' indicating whether an environment >> stands on its own (like lists) or not. > > I also implemented this and used it for Comment and GreyedOut notes.
This requires a layout format bump. > Please try the attached patch. I followed all your suggestions, such > that now all \n are always output, but if one wants to output something > at the beginning of a line without fear of introducing blank lines, he > has to use the pseudo-iomanips breakln and safebreakln. The first one > will output \n, the second "%\n", but only if really needed. Good. > For updating the line count, os.countLines() has to be called first > (to clear the counter) and after having output something in order to > have returned the number of newlines since last call. Why clear the couter? If it is not 0, then we have pending lines we forgot to count, and it is better to take them in account. Is there a bug if you do not do that? JMarc PS: amusing bug in next message :)