From: Jacob Fugal Date: 2005-10-14T00:33:05+09:00 Subject: Re: A (minor) coding challenge On 10/12/05, rubyhacker@gmail.com wrote: > Reformat both texts such that: > > 3. Preserve any "extra" blank lines that were already there > between paragraphs. > > 4. Neither text will allow a page break in the middle of a paragraph. > If it won't fit in either case, do a page break for both. Question regarding the combination of rules 3 and 4: Assume paragraphs A and B, where B follows A directly, with some number of extra newlines. After reformating, a page break must be inserted between A and B. Should the extra newlines be 1) before the page break, 2) after the page break or 3) consumed in the page break? In the case of 1), what if all the newlines don't fit? Should they span the page break? Just want to make sure I've got the requirements right before making an attempt. :) Jacob Fugal