about summary refs log tree commit diff stats
path: root/WWW/Library
diff options
context:
space:
mode:
Diffstat (limited to 'WWW/Library')
-rw-r--r--WWW/Library/Implementation/HTFormat.c18
-rw-r--r--WWW/Library/Implementation/SGML.c8
2 files changed, 21 insertions, 5 deletions
diff --git a/WWW/Library/Implementation/HTFormat.c b/WWW/Library/Implementation/HTFormat.c
index 3c20fc0a..58afc4b8 100644
--- a/WWW/Library/Implementation/HTFormat.c
+++ b/WWW/Library/Implementation/HTFormat.c
@@ -488,14 +488,24 @@ PRIVATE void HTDisplayPartial NOARGS
 	**
 	**  Update NumOfLines_partial only if we repaint the display,
 	**  so it corresponds to real number of displayed lines.
-	**  Repaint the page only if Newline_partial
-	**  in our hand is fact:
+	**  Repaint the page only when necessary:
 	*/
-	if ((Newline_partial <= HText_getNumOfLines()) &&
-		((Newline_partial + display_lines) > NumOfLines_partial))  {
+	if ((Newline_partial + display_lines) > NumOfLines_partial) {
+		/* current page not complete... */
+	if ((Newline_partial + 2)  < HText_getNumOfLines()) {
+		/* and we MAY display at least a couple of lines on the top.
+		**
+		** Note: we check the lines in _rendered_ document
+		** and real HTML source may have several Kb of headers,
+		** Javascript applets etc., which are not visible in lynx
+		** and we got a delay (correct).
+		** We should NOT try to repaint at that early stage
+		** to avoid interfere with previously displayed document. - LP
+		*/
 	    NumOfLines_partial = HText_getNumOfLines();
 	    HText_pageDisplay(Newline_partial, "");
 	}
+	}
     }
 }
 #else
diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c
index 884f6d79..20aaa33e 100644
--- a/WWW/Library/Implementation/SGML.c
+++ b/WWW/Library/Implementation/SGML.c
@@ -1742,7 +1742,7 @@ top1:
 	    if ((context->isHex ? sscanf(string->data, "%lx", &code) :
 				  sscanf(string->data, "%ld", &code)) == 1) {
 		if ((code == 1) ||
-		    (code > 129 && code < 156)) {
+		    (code > 127 && code < 156)) {
 		    /*
 		    **	Assume these are Microsoft code points,
 		    **	inflicted on us by FrontPage. - FM
@@ -1758,6 +1758,12 @@ top1:
 			    */
 			    code = 0x263a;
 			    break;
+			case 128:
+			    /*
+			    **	EURO currency sign
+			    */
+			    code = 0x20ac;
+			    break;
 			case 130:
 			    /*
 			    **	SINGLE LOW-9 QUOTATION MARK (sbquo)