[Date Index][Thread Index]
[Date Prev][Date Next][Thread Prev][Thread Next]
Re: BUG REPORT: Website META Language 1.7.1 (05-06-1999)
- From: Denis Barbier <nospam@thanx>
- Date: Mon, 7 Jun 1999 14:32:35 +0200 (CET)
On Mon, 7 Jun 1999, Jan Ulrich Hasecke wrote:
> Should there always be a newline after the last line, if it
> contains a tag?
This time, i must admit it's a bug :-(
If after the first pass, the last character is a superior sign
instead of a newline, then the last tag is not expanded during pass 2.
All editors put a newline on the last line, so i beieve this bug has no
consequence in practice.
Apply the patch below if you think you are concerned by this bug.
Thanx to Jan Ulrich for the report.
Denis
--- wml_backend/p2_mhc/libmhtml/pagefuncs.c 1999/03/16 11:05:12 1.7
+++ wml_backend/p2_mhc/libmhtml/pagefuncs.c 1999/06/07 12:22:02
@@ -336,7 +336,7 @@
int loc = atoi (insert_loc);
if (loc < 0)
- loc = top_page->page->bindex + loc;
+ loc = top_page->page->bindex + loc + 1;
if ((loc > -1) && (loc < top_page->page->bindex))
{
bprintf_insert_text (top_page->page, loc, insertion);
______________________________________________________________________
Website META Language (WML) www.engelschall.com/sw/wml/
Official Support Mailing List sw-wml@engelschall.com
Automated List Manager majordomo@engelschall.com