87 |
|
fout << "<html>"; |
88 |
|
|
89 |
|
ext::String segment; |
90 |
< |
bool text(true); |
90 |
> |
bool text(false); |
91 |
|
ext::Stack<ext::String> opens; |
92 |
|
|
93 |
< |
while (read(in, segment, text)) if (text) |
93 |
> |
while (read(in, segment, (text = !text))) if (text) |
94 |
|
{ |
95 |
|
fout << segment; |
96 |
– |
|
97 |
– |
text = false; |
96 |
|
} |
97 |
|
else |
98 |
|
{ |
99 |
+ |
Matcher matcher; |
100 |
+ |
|
101 |
+ |
if (segment == matcher("^!--( \\(\\d{1,2}:\\d{2}:\\d{2} [AP]M\\))--$")) |
102 |
+ |
{ |
103 |
+ |
fout << matcher[1]; |
104 |
+ |
|
105 |
+ |
continue; |
106 |
+ |
} |
107 |
+ |
|
108 |
|
Tag tag(segment); |
109 |
|
|
110 |
|
if (tag == "br") tag = STANDALONE; |
126 |
|
} |
127 |
|
|
128 |
|
fout << tag; |
122 |
– |
|
123 |
– |
text = true; |
129 |
|
} |
130 |
|
|
131 |
|
fout << "</html>\n"; |