From 3c7cb4bbcd56c17e1abba05f20d001a2484d9919 Mon Sep 17 00:00:00 2001 From: "Thomas E. Dickey" Date: Fri, 21 Aug 1998 13:30:00 -0400 Subject: snapshot of project "lynx", label v2-8-1dev_22 --- WWW/Library/Implementation/HTFormat.c | 18 ++++++++++++++---- WWW/Library/Implementation/SGML.c | 8 +++++++- 2 files changed, 21 insertions(+), 5 deletions(-) (limited to 'WWW/Library') 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) -- cgit 1.4.1-2-gfad0 href='/akspecs/ranger/plain/ranger.py?h=v1.9.2&id=6b4c87186d42e8ac3f735acc206b07c631be381a'>plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41