diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-21 13:30:00 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1998-08-21 13:30:00 -0400 |
commit | 3c7cb4bbcd56c17e1abba05f20d001a2484d9919 (patch) | |
tree | 30f608a2a7c6355ee69d6b061ed3fd458010ad75 /WWW | |
parent | 0eae931d4f0fd1194dfcd978c3d94079b710923f (diff) | |
download | lynx-snapshots-3c7cb4bbcd56c17e1abba05f20d001a2484d9919.tar.gz |
snapshot of project "lynx", label v2-8-1dev_22
Diffstat (limited to 'WWW')
-rw-r--r-- | WWW/Library/Implementation/HTFormat.c | 18 | ||||
-rw-r--r-- | WWW/Library/Implementation/SGML.c | 8 |
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) |