Submitted by : Phil Schumm at: 2005-02-14T12:44:16+00:00 (12 years ago)
Name :
Category : Severity : Status :
Optional subject :  
Optional comment :

When editing a reStructuredText page, if the page ends in a list without a final blank line, the parser returns a warning (interestingly, this doesn't seem to happen if I call directly on a file). This is not so much of a problem when first creating a page, since one can develop a habit of ending each page in a blank line. However, since ZWiki then strips this blank line before saving the page's source, subsequent edits or commenting on the page generates the warning as the page is rerendered without a final blank line.

not sure --stefan rank, Wed, 23 Feb 2005 00:41:44 -0800 reply

but as far as I can tell, ZWiki is not stripping any blank lines from the end of the source. I have seen this blank-line-missing-warning several times (it appears because the rest parser is called by zwiki with a higher warning level than the default for, and adding a newline and saving makes it disappear.

One thing that might be happening is that some browsers cache the edit form, which means if you add the newline - save - and edit again, what might be loaded is the old source without the newline. So saving again removes it again.

It might be worth adding a nocache header to the editforms? I do not know if this has sideeffects (like more easily loosing the text vou've written if you accidentally click the back button...)

if no one objects? --Mon, 07 Mar 2005 22:23:25 -0800 reply

Status: open => closed

is this fixed? --DeanG, Tue, 08 Mar 2005 06:51:04 -0800 reply

related add-comment problem --Wed, 09 Mar 2005 11:45:48 -0800 reply

We think there is a related issue: the very first added comment on an rst page raises a parse error, which can then be fixed by adding additional blank lines in between the page body and the comments section.