Skip to content

Commit dd7f888

Browse files
committed
Modify expected test output to track recent logging.lua changes
1 parent d2f44a9 commit dd7f888

File tree

2 files changed

+163
-36
lines changed

2 files changed

+163
-36
lines changed

examples/simple.lua.expected

Lines changed: 161 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,133 @@
11
(#) pandoc Pandoc {
22
blocks: Blocks {
33
[1] Header {
4+
attr: Attr {
5+
attributes: AttributeList {}
6+
classes: List {}
7+
identifier: "pandoc-lua-logging-examples"
8+
}
9+
content: Inlines {
10+
[1] Str "Pandoc"
11+
[2] Space
12+
[3] Str "lua"
13+
[4] Space
14+
[5] Str "logging"
15+
[6] Space
16+
[7] Str "examples"
17+
}
18+
level: 1
19+
}
20+
[2] Para {
21+
content: Inlines {
22+
[1] Str "This"
23+
[2] Space
24+
[3] Str "directory"
25+
[4] Space
26+
[5] Str "contains"
27+
[6] Space
28+
[7] Str "example"
29+
[8] Space
30+
[9] Str "lua"
31+
[10] Space
32+
[11] Str "files"
33+
[12] Space
34+
[13] Str "(standalone"
35+
[14] Space
36+
[15] Str "and"
37+
[16] Space
38+
[17] Str "pandoc"
39+
[18] Space
40+
[19] Str "filters)"
41+
[20] Space
42+
[21] Str "and"
43+
[22] Space
44+
[23] Str "some"
45+
[24] Space
46+
[25] Str "sample"
47+
[26] Space
48+
[27] Str "markdown"
49+
[28] Space
50+
[29] Str "files."
51+
}
52+
}
53+
[3] Para {
54+
content: Inlines {
55+
[1] Str "These"
56+
[2] Space
57+
[3] Str "files"
58+
[4] Space
59+
[5] Str "were"
60+
[6] Space
61+
[7] Str "used"
62+
[8] Space
63+
[9] Str "when"
64+
[10] Space
65+
[11] Str "generating"
66+
[12] Space
67+
[13] Str "the"
68+
[14] Space
69+
[15] Str "examples"
70+
[16] Space
71+
[17] Str "in"
72+
[18] Space
73+
[19] Str "the"
74+
[20] Space
75+
[21] Str "top-level"
76+
[22] Space
77+
[23] Str "README"
78+
[24] Space
79+
[25] Str "file."
80+
}
81+
}
82+
[4] Para {
83+
content: Inlines {
84+
[1] Str "There�\128\153s"
85+
[2] Space
86+
[3] Str "also"
87+
[4] Space
88+
[5] Str "a"
89+
[6] Space
90+
[7] Code {
91+
attr: Attr {
92+
attributes: AttributeList {}
93+
classes: List {}
94+
identifier: ""
95+
}
96+
text: "Makefile"
97+
}
98+
[8] Space
99+
[9] Str "that"
100+
[10] Space
101+
[11] Str "runs"
102+
[12] Space
103+
[13] Str "lua"
104+
[14] Space
105+
[15] Str "and"
106+
[16] Space
107+
[17] Str "pandoc"
108+
[18] Space
109+
[19] Str "(as"
110+
[20] Space
111+
[21] Str "appropriate)"
112+
[22] Space
113+
[23] Str "and"
114+
[24] Space
115+
[25] Str "compares"
116+
[26] Space
117+
[27] Str "the"
118+
[28] Space
119+
[29] Str "output"
120+
[30] Space
121+
[31] Str "with"
122+
[32] Space
123+
[33] Str "the"
124+
[34] Space
125+
[35] Str "expected"
126+
[36] Space
127+
[37] Str "output."
128+
}
129+
}
130+
[5] Header {
4131
attr: Attr {
5132
attributes: AttributeList {
6133
a: "b"
@@ -11,62 +138,62 @@
11138
identifier: "header"
12139
}
13140
content: Inlines {
14-
[1] Str text: "Header"
141+
[1] Str "Header"
15142
}
16143
level: 1
17144
}
18-
[2] Para {
145+
[6] Para {
19146
content: Inlines {
20-
[1] Str text: "Paragraph"
21-
[2] Space {}
22-
[3] Str text: "with"
23-
[4] Space {}
147+
[1] Str "Paragraph"
148+
[2] Space
149+
[3] Str "with"
150+
[4] Space
24151
[5] Emph {
25152
content: Inlines {
26-
[1] Str text: "emphasized"
153+
[1] Str "emphasized"
27154
}
28155
}
29-
[6] Space {}
30-
[7] Str text: "and"
31-
[8] Space {}
156+
[6] Space
157+
[7] Str "and"
158+
[8] Space
32159
[9] Strong {
33160
content: Inlines {
34-
[1] Str text: "bold"
161+
[1] Str "bold"
35162
}
36163
}
37-
[10] Space {}
38-
[11] Str text: "text."
164+
[10] Space
165+
[11] Str "text."
39166
}
40167
}
41-
[3] CodeBlock {
168+
[7] CodeBlock {
42169
attr: Attr {
43170
attributes: AttributeList {}
44171
classes: List {}
45172
identifier: ""
46173
}
47174
text: "Code"
48175
}
49-
[4] BulletList {
176+
[8] BulletList {
50177
content: List {
51178
[1] Blocks {
52179
[1] Plain {
53180
content: Inlines {
54-
[1] Str text: "and"
55-
[2] Space {}
56-
[3] Str text: "a"
57-
[4] Space {}
58-
[5] Str text: "list."
181+
[1] Str "and"
182+
[2] Space
183+
[3] Str "a"
184+
[4] Space
185+
[5] Str "list."
59186
}
60187
}
61188
}
62189
}
63190
}
64-
[5] Para {
191+
[9] Para {
65192
content: Inlines {
66-
[1] Str text: "text"
193+
[1] Str "text"
67194
}
68195
}
69-
[6] Table {
196+
[10] Table {
70197
attr: Attr {
71198
attributes: AttributeList {}
72199
classes: List {}
@@ -98,7 +225,7 @@
98225
contents: Blocks {
99226
[1] Plain {
100227
content: Inlines {
101-
[1] Str text: "Tom"
228+
[1] Str "Tom"
102229
}
103230
}
104231
}
@@ -115,11 +242,11 @@
115242
contents: Blocks {
116243
[1] Plain {
117244
content: Inlines {
118-
[1] Str text: "Black"
119-
[2] Space {}
120-
[3] Str text: "and"
121-
[4] Space {}
122-
[5] Str text: "white"
245+
[1] Str "Black"
246+
[2] Space
247+
[3] Str "and"
248+
[4] Space
249+
[5] Str "white"
123250
}
124251
}
125252
}
@@ -136,7 +263,7 @@
136263
long: Blocks {
137264
[1] Plain {
138265
content: Inlines {
139-
[1] Str text: "Cats"
266+
[1] Str "Cats"
140267
}
141268
}
142269
}
@@ -182,7 +309,7 @@
182309
contents: Blocks {
183310
[1] Plain {
184311
content: Inlines {
185-
[1] Str text: "Name"
312+
[1] Str "Name"
186313
}
187314
}
188315
}
@@ -199,7 +326,7 @@
199326
contents: Blocks {
200327
[1] Plain {
201328
content: Inlines {
202-
[1] Str text: "Description"
329+
[1] Str "Description"
203330
}
204331
}
205332
}
@@ -215,14 +342,14 @@
215342
foo: Inlines {
216343
[1] Emph {
217344
content: Inlines {
218-
[1] Str text: "emph"
345+
[1] Str "emph"
219346
}
220347
}
221348
}
222349
goo: Inlines {
223350
[1] Underline {
224351
content: Inlines {
225-
[1] Str text: "underline"
352+
[1] Str "underline"
226353
}
227354
}
228355
}

examples/table.lua.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
contents: Blocks {
1111
[1] Plain {
1212
content: Inlines {
13-
[1] Str text: "Name"
13+
[1] Str "Name"
1414
}
1515
}
1616
}
@@ -27,7 +27,7 @@
2727
contents: Blocks {
2828
[1] Plain {
2929
content: Inlines {
30-
[1] Str text: "Description"
30+
[1] Str "Description"
3131
}
3232
}
3333
}

0 commit comments

Comments
 (0)