2022-04-22 14:20:47 +03:00
|
|
|
|
|
|
|
|
|
x Document
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:1:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
1 | ,-> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
|
2 | | "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
|
3 | | <html>
|
|
|
|
|
4 | | <head>
|
|
|
|
|
5 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
6 | | <title>Тег PLAINTEXT</title>
|
|
|
|
|
7 | | </head>
|
|
|
|
|
8 | | <body>
|
|
|
|
|
9 | | <p>Пример программы</p>
|
|
|
|
|
10 | | <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:1:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
1 | ,-> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
|
2 | `-> "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x DocumentType
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:1:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
1 | ,-> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
|
2 | `-> "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:3:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
3 | ,-> <html>
|
|
|
|
|
4 | | <head>
|
|
|
|
|
5 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
6 | | <title>Тег PLAINTEXT</title>
|
|
|
|
|
7 | | </head>
|
|
|
|
|
8 | | <body>
|
|
|
|
|
9 | | <p>Пример программы</p>
|
|
|
|
|
10 | | <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:3:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
3 | ,-> <html>
|
|
|
|
|
4 | | <head>
|
|
|
|
|
5 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
6 | | <title>Тег PLAINTEXT</title>
|
|
|
|
|
7 | | </head>
|
|
|
|
|
8 | | <body>
|
|
|
|
|
9 | | <p>Пример программы</p>
|
|
|
|
|
10 | | <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:4:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
4 | ,-> <head>
|
|
|
|
|
5 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2022-06-02 07:00:32 +03:00
|
|
|
|
6 | | <title>Тег PLAINTEXT</title>
|
|
|
|
|
7 | `-> </head>
|
2022-04-22 14:20:47 +03:00
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:4:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
4 | ,-> <head>
|
|
|
|
|
5 | | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2022-06-02 07:00:32 +03:00
|
|
|
|
6 | | <title>Тег PLAINTEXT</title>
|
|
|
|
|
7 | `-> </head>
|
2022-04-22 14:20:47 +03:00
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:4:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
4 | ,-> <head>
|
|
|
|
|
5 | `-> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:4:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
4 | ,-> <head>
|
|
|
|
|
5 | `-> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:5:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:5:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Attribute
|
2022-05-17 11:23:24 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:5:5]
|
|
|
|
|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Attribute
|
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:5:5]
|
|
|
|
|
5 | <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
2022-04-22 14:20:47 +03:00
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:5:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
5 | ,-> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
6 | `-> <title>Тег PLAINTEXT</title>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:5:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
5 | ,-> <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
|
6 | `-> <title>Тег PLAINTEXT</title>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:6:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
6 | <title>Тег PLAINTEXT</title>
|
2022-06-02 07:00:32 +03:00
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-22 14:20:47 +03:00
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:6:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
6 | <title>Тег PLAINTEXT</title>
|
2022-06-02 07:00:32 +03:00
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-22 14:20:47 +03:00
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:6:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
6 | <title>Тег PLAINTEXT</title>
|
|
|
|
|
: ^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:6:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
6 | <title>Тег PLAINTEXT</title>
|
|
|
|
|
: ^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:6:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
6 | <title>Тег PLAINTEXT</title>
|
|
|
|
|
: ^
|
|
|
|
|
7 | </head>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:6:5]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
6 | <title>Тег PLAINTEXT</title>
|
|
|
|
|
: ^
|
|
|
|
|
7 | </head>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:7:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
7 | </head>
|
|
|
|
|
: ^
|
|
|
|
|
8 | <body>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:7:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
7 | </head>
|
|
|
|
|
: ^
|
|
|
|
|
8 | <body>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:8:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
8 | ,-> <body>
|
|
|
|
|
9 | | <p>Пример программы</p>
|
|
|
|
|
10 | | <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:8:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
8 | ,-> <body>
|
|
|
|
|
9 | | <p>Пример программы</p>
|
|
|
|
|
10 | | <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:8:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
8 | <body>
|
|
|
|
|
: ^
|
|
|
|
|
9 | <p>Пример программы</p>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:8:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
8 | <body>
|
|
|
|
|
: ^
|
|
|
|
|
9 | <p>Пример программы</p>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:9:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
9 | <p>Пример программы</p>
|
2022-06-02 07:00:32 +03:00
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-22 14:20:47 +03:00
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:9:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
9 | <p>Пример программы</p>
|
2022-06-02 07:00:32 +03:00
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2022-04-22 14:20:47 +03:00
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:9:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
9 | <p>Пример программы</p>
|
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:9:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
9 | <p>Пример программы</p>
|
|
|
|
|
: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:9:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
9 | <p>Пример программы</p>
|
|
|
|
|
: ^
|
|
|
|
|
10 | <plaintext>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:9:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
9 | <p>Пример программы</p>
|
|
|
|
|
: ^
|
|
|
|
|
10 | <plaintext>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:10:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
10 | ,-> <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Element
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:10:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
10 | ,-> <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Child
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:10:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
10 | ,-> <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|
|
|
|
|
|
|
|
|
|
x Text
|
2022-04-28 20:27:39 +03:00
|
|
|
|
,-[$DIR/tests/recovery/element/plaintext/input.html:10:1]
|
2022-04-22 14:20:47 +03:00
|
|
|
|
10 | ,-> <plaintext>
|
|
|
|
|
11 | | <h1>Демонстрация метода Подборского</h1>
|
|
|
|
|
12 | | while (<>) {
|
|
|
|
|
13 | | $org=$_;
|
|
|
|
|
14 | | s/\\["']//g;
|
|
|
|
|
15 | | s/\/\/[^:].*//;
|
|
|
|
|
16 | | s/\/\*.*\*\///g;
|
|
|
|
|
17 | | if ($comment == 1) {
|
|
|
|
|
18 | | if (s/.*\*\///) {
|
|
|
|
|
19 | | $comment = 0;
|
|
|
|
|
20 | | }
|
|
|
|
|
21 | | else {
|
|
|
|
|
22 | | next;
|
|
|
|
|
23 | | }
|
|
|
|
|
24 | | }
|
|
|
|
|
25 | | if (s/\/\*.*//) {
|
|
|
|
|
26 | | $comment = 1;
|
|
|
|
|
27 | | }
|
|
|
|
|
28 | | if (/^\s*#/) {
|
|
|
|
|
29 | | next;
|
|
|
|
|
30 | | }
|
|
|
|
|
31 | | }</plaintext>
|
|
|
|
|
32 | | </body>
|
|
|
|
|
33 | `-> </html>
|
|
|
|
|
`----
|