git.iko.soy/typeable/pandoc
on master help sign in
Updated context tests.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1869 788f1e2b-df1e-0410-8736-df70ead52e1b

commit1bc5fc0117fab9119bcf115495c006e1eff63dae authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 7 Mar 2010, 19:35 (17 years ago) parent53d8977
2 files changed+50−22
tests/tables.context+41 tests/writer.context+9−22
tests/tables.context+41
@@ -132,3 +132,44 @@ Multiline table without caption:
132132\NC\AR
133133\HL
134134\stoptable
135+
136+Table without column headers:
137+
138+\placetable[here]{none}
139+\starttable[|r|l|c|r|]
140+\HL
141+\NC 12
142+\NC 12
143+\NC 12
144+\NC 12
145+\NC\AR
146+\NC 123
147+\NC 123
148+\NC 123
149+\NC 123
150+\NC\AR
151+\NC 1
152+\NC 1
153+\NC 1
154+\NC 1
155+\NC\AR
156+\HL
157+\stoptable
158+
159+Multiline table without column headers:
160+
161+\placetable[here]{none}
162+\starttable[|cp(0.15\textwidth)|lp(0.14\textwidth)|rp(0.16\textwidth)|lp(0.34\textwidth)|]
163+\HL
164+\NC First
165+\NC row
166+\NC 12.0
167+\NC Example of a row that spans multiple lines.
168+\NC\AR
169+\NC Second
170+\NC row
171+\NC 5.0
172+\NC Here's another one. Note the blank line between rows.
173+\NC\AR
174+\HL
175+\stoptable
tests/writer.context+9−22
@@ -14,24 +14,6 @@
1414\setuphead[subsection][style=\tfb]
1515\setuphead[subsubsection][style=\bf]
1616
17−% define title block commands
18−\unprotect
19−\def\doctitle#1{\gdef\@title{#1}}
20−\def\author#1{\gdef\@author{#1}}
21−\def\date#1{\gdef\@date{#1}}
22−\date{\currentdate} % Default to today unless specified otherwise.
23−\def\maketitle{%
24− \startalignment[center]
25− \blank[2*big]
26− {\tfd \@title}
27− \blank[3*medium]
28− {\tfa \@author}
29− \blank[2*medium]
30− {\tfa \@date}
31− \blank[3*medium]
32− \stopalignment}
33−\protect
34−
3517% define descr (for definition lists)
3618\definedescription[descr][
3719 headstyle=bold,style=normal,align=left,location=hanging,
@@ -68,11 +50,16 @@ after={\blank[medium]},
6850
6951\protect
7052
71−\doctitle{Pandoc Test Suite}
72−\author{John MacFarlane\\Anonymous}
73−\date{July 17, 2006}
7453\starttext
75−\maketitle
54+\startalignment[center]
55+ \blank[2*big]
56+ {\tfd Pandoc Test Suite}
57+ \blank[3*medium]
58+ {\tfa John MacFarlane\crlf Anonymous}
59+ \blank[2*medium]
60+ {\tfa July 17, 2006}
61+ \blank[3*medium]
62+\stopalignment
7663
7764This is a set of tests for pandoc. Most of them are adapted from
7865John Gruber's markdown test suite.