0baaa1080a
Previously the left-hand column could not start with 4 or more spaces indent. This was inconvenient for right-aligned left columns. Note that the first (header column) must still have 3 or fewer spaces indentation, or the table will be treated as an indented code block.
86 lines
2.6 KiB
Text
86 lines
2.6 KiB
Text
[Para [Str "Simplest",Space,Str "table",Space,Str "without",Space,Str "caption:"]
|
|
,Table [] [AlignDefault,AlignDefault,AlignDefault] [0.0,0.0,0.0]
|
|
[[Plain [Str "Default1"]]
|
|
,[Plain [Str "Default2"]]
|
|
,[Plain [Str "Default3"]]]
|
|
[[[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]]
|
|
,[[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]]
|
|
,[[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]]]
|
|
,Para [Str "Simple",Space,Str "table",Space,Str "with",Space,Str "caption:"]
|
|
,Table [Str "Demonstration",Space,Str "of",Space,Str "simple",Space,Str "table",Space,Str "syntax."] [AlignRight,AlignLeft,AlignDefault,AlignCenter] [0.0,0.0,0.0,0.0]
|
|
[[Plain [Str "Right"]]
|
|
,[Plain [Str "Left"]]
|
|
,[Plain [Str "Default"]]
|
|
,[Plain [Str "Center"]]]
|
|
[[[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]]
|
|
,[[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]]
|
|
,[[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]]]
|
|
,Para [Str "Simple",Space,Str "table",Space,Str "without",Space,Str "caption:"]
|
|
,Table [] [AlignRight,AlignLeft,AlignCenter] [0.0,0.0,0.0]
|
|
[[Plain [Str "Right"]]
|
|
,[Plain [Str "Left"]]
|
|
,[Plain [Str "Center"]]]
|
|
[[[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]]
|
|
,[[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]]
|
|
,[[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]]]
|
|
,Para [Str "Headerless",Space,Str "table",Space,Str "without",Space,Str "caption:"]
|
|
,Table [] [AlignRight,AlignLeft,AlignCenter] [0.0,0.0,0.0]
|
|
[[]
|
|
,[]
|
|
,[]]
|
|
[[[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]
|
|
,[Plain [Str "12"]]]
|
|
,[[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]
|
|
,[Plain [Str "123"]]]
|
|
,[[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]
|
|
,[Plain [Str "1"]]]]
|
|
,Para [Str "Table",Space,Str "without",Space,Str "sides:"]
|
|
,Table [] [AlignDefault,AlignRight] [0.0,0.0]
|
|
[[Plain [Str "Fruit"]]
|
|
,[Plain [Str "Quantity"]]]
|
|
[[[Plain [Str "apple"]]
|
|
,[Plain [Str "5"]]]
|
|
,[[Plain [Str "orange"]]
|
|
,[Plain [Str "17"]]]
|
|
,[[Plain [Str "pear"]]
|
|
,[Plain [Str "302"]]]]
|
|
,Para [Str "One-column:"]
|
|
,Table [] [AlignDefault] [0.0]
|
|
[[Plain [Str "hi"]]]
|
|
[[[Plain [Str "lo"]]]]
|
|
,Para [Str "Header-less",Space,Str "one-column:"]
|
|
,Table [] [AlignCenter] [0.0]
|
|
[[]]
|
|
[[[Plain [Str "hi"]]]]
|
|
,Para [Str "Indented",Space,Str "left",Space,Str "column:"]
|
|
,Table [] [AlignRight,AlignLeft] [0.0,0.0]
|
|
[[Plain [Str "Number",Space,Str "of",Space,Str "siblings"]]
|
|
,[Plain [Str "Salary"]]]
|
|
[[[Plain [Str "3"]]
|
|
,[Plain [Str "33"]]]
|
|
,[[Plain [Str "4"]]
|
|
,[Plain [Str "44"]]]]]
|