Rev 7755 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7755 | Rev 7756 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | void NewLine(); |
37 | void NewLine(); |
38 | bool CheckForLineBreak(); |
38 | bool CheckForLineBreak(); |
39 | void BufEncode(); |
39 | void BufEncode(); |
40 | } WB1; |
40 | } WB1; |
Line -... | Line 41... | ||
- | 41 | ||
- | 42 | dword page_bg; |
|
- | 43 | #include "..\TWB\img_cache.h" |
|
41 | 44 | ||
42 | dword link_color_inactive; |
45 | dword link_color_inactive; |
43 | dword link_color_active; |
- | |
Line 44... | Line -... | ||
44 | dword page_bg; |
- | |
45 | - | ||
46 | bool |
46 | dword link_color_active; |
47 | link, |
- | |
48 | cur_encoding, |
- | |
Line 49... | Line -... | ||
49 | t_html, |
- | |
50 | t_body; |
47 | |
Line 51... | Line 48... | ||
51 | 48 | bool link, cur_encoding, t_html, t_body; |
|
52 | #include "..\TWB\img_cache.h" |
49 | |
Line -... | Line 50... | ||
- | 50 | #include "..\TWB\links.h" |
|
- | 51 | ||
53 | #include "..\TWB\links.h" |
52 | dword bufpointer=0; |
54 | 53 | dword bufsize=0; |
|
Line 55... | Line -... | ||
55 | dword bufpointer=0; |
- | |
56 | dword bufsize=0; |
- | |
57 | - | ||
58 | int body_magrin=6; |
54 | |
Line 59... | Line 55... | ||
59 | int basic_line_h=22; |
55 | char header[150]; |
60 | 56 | ||
61 | char header[150]; |
57 | int body_magrin=6; |
62 | char oldtag[100]; |
58 | int basic_line_h=22; |
Line 249... | Line 245... | ||
249 | if (tag.name) && (!tag.is("i")) && (!tag.is("svg")) { |
245 | if (tag.name) && (!tag.is("i")) && (!tag.is("svg")) { |
250 | CheckForLineBreak(); |
246 | CheckForLineBreak(); |
251 | DrawStyle(); |
247 | DrawStyle(); |
252 | if (tag.name) SetStyle(); |
248 | if (tag.name) SetStyle(); |
253 | } |
249 | } |
254 | strncpy(#oldtag, #tag.name, sizeof(oldtag)-1); |
- | |
255 | break; |
250 | break; |
256 | default: |
251 | default: |
257 | AddCharToTheLine(ESBYTE[bufpos]); |
252 | AddCharToTheLine(ESBYTE[bufpos]); |
258 | } |
253 | } |
259 | } |
254 | } |
Line 373... | Line 368... | ||
373 | } |
368 | } |
374 | else if (text_color_index > 0) text_color_index--; |
369 | else if (text_color_index > 0) text_color_index--; |
375 | return; |
370 | return; |
376 | } |
371 | } |
377 | if (tag.is("div")) { |
372 | if (tag.is("div")) { |
378 | if (streq(#oldtag,"div")) && (tag.opened) return; |
373 | if (streq(#tag.prior,"div")) && (tag.opened) return; |
379 | NewLine(); |
374 | NewLine(); |
380 | //IF (oldtag[0] != 'h') |
- | |
381 | return; |
375 | return; |
382 | } |
376 | } |
383 | if (tag.is("header")) || (tag.is("article")) || (tag.is("footer")) || (tag.is("figure")) { |
377 | if (tag.is("header")) || (tag.is("article")) || (tag.is("footer")) || (tag.is("figure")) { |
384 | NewLine(); |
378 | NewLine(); |
385 | return; |
379 | return; |
386 | } |
380 | } |
387 | if (tag.is("p")) { |
381 | if (tag.is("p")) { |
388 | IF (oldtag[0] == 'h') || (streq(#oldtag,"td")) || (streq(#oldtag,"p")) return; |
382 | IF (tag.prior[0] == 'h') || (streq(#tag.prior,"td")) || (streq(#tag.prior,"p")) return; |
389 | NewLine(); |
383 | NewLine(); |
390 | //IF(tag.opened) NewLine(); |
- | |
391 | return; |
384 | return; |
392 | } |
385 | } |
393 | if (tag.is("br")) { NewLine(); return; } |
386 | if (tag.is("br")) { NewLine(); return; } |
394 | if (tag.is("tr")) { if (tag.opened) NewLine(); return; } |
387 | if (tag.is("tr")) { if (tag.opened) NewLine(); return; } |
395 | if (tag.is("b")) || (tag.is("strong")) || (tag.is("big")) { style.b = tag.opened; return; } |
388 | if (tag.is("b")) || (tag.is("strong")) || (tag.is("big")) { style.b = tag.opened; return; } |