git.iko.soy/typeable/pandoc
on master help sign in
OpenDocument writer: Updated to use Pretty.
commitc9040249448f00d9713281fb8986fc55376c44a1 authorJohn MacFarlane <jgm@berkeley.edu> dateTue 21 Dec 2010, 16:59 (16 years ago) parente2548a1
3 files changed+314−140
src/Text/Pandoc/Writers/OpenDocument.hs+12−8 tests/tables.opendocument+24−12 tests/writer.opendocument+278−120
src/Text/Pandoc/Writers/OpenDocument.hs+12−8
@@ -35,7 +35,7 @@ import Text.Pandoc.Shared
3535import Text.Pandoc.XML
3636import Text.Pandoc.Templates (renderTemplate)
3737import Text.Pandoc.Readers.TeXMath
38−import Text.PrettyPrint.HughesPJ hiding ( Str )
38+import Text.Pandoc.Pretty
3939import Text.Printf ( printf )
4040import Control.Applicative ( (<$>) )
4141import Control.Arrow ( (***), (>>>) )
@@ -169,7 +169,11 @@ writeOpenDocument opts (Pandoc (Meta title authors date) blocks) =
169169 date'' <- inlinesToOpenDocument opts date
170170 doc'' <- blocksToOpenDocument opts blocks
171171 return (doc'', title'', authors'', date'')
172− body' = render doc
172+ colwidth = if writerWrapText opts
173+ then Just $ writerColumns opts
174+ else Nothing
175+ render' = render colwidth
176+ body' = render' doc
173177 styles = stTableStyles s ++ stParaStyles s ++ stTextStyles s
174178 listStyle (n,l) = inTags True "text:list-style"
175179 [("style:name", "L" ++ show n)] (vcat l)
@@ -178,10 +182,10 @@ writeOpenDocument opts (Pandoc (Meta title authors date) blocks) =
178182 reverse $ styles ++ listStyles
179183 context = writerVariables opts ++
180184 [ ("body", body')
181− , ("automatic-styles", render automaticStyles)
182− , ("title", render title')
183− , ("date", render date') ] ++
184− [ ("author", render a) | a <- authors' ]
185+ , ("automatic-styles", render' automaticStyles)
186+ , ("title", render' title')
187+ , ("date", render' date') ] ++
188+ [ ("author", render' a) | a <- authors' ]
185189 in if writerStandalone opts
186190 then renderTemplate context $ writerTemplate opts
187191 else body'
@@ -288,7 +292,7 @@ blockToOpenDocument o bs
288292 r <- vcat <$> mapM (deflistItemToOpenDocument o) b
289293 setInDefinitionList False
290294 return r
291− preformatted s = vcat <$> mapM (inPreformattedTags . escapeStringForXML) (lines s)
295+ preformatted s = (flush . vcat) <$> mapM (inPreformattedTags . escapeStringForXML) (lines s)
292296 mkBlockQuote b = do increaseIndent
293297 i <- paraStyle "Quotations" []
294298 inBlockQuote o i (map plainToPara b)
@@ -348,7 +352,7 @@ inlineToOpenDocument o ils
348352 | EmDash <- ils = inTextStyle $ text "&#8212;"
349353 | EnDash <- ils = inTextStyle $ text "&#8211;"
350354 | Apostrophe <- ils = inTextStyle $ text "&#8217;"
351− | Space <- ils = inTextStyle $ char ' '
355+ | Space <- ils = inTextStyle space
352356 | LineBreak <- ils = return $ selfClosingTag "text:line-break" []
353357 | Str s <- ils = inTextStyle $ handleSpaces $ escapeStringForXML s
354358 | Emph l <- ils = withTextStyle Italic $ inlinesToOpenDocument o l
tests/tables.opendocument+24−12
@@ -63,7 +63,8 @@
6363 </table:table-cell>
6464 </table:table-row>
6565</table:table>
66−<text:p text:style-name="Caption">Demonstration of simple table syntax.</text:p>
66+<text:p text:style-name="Caption">Demonstration of simple table
67+syntax.</text:p>
6768<text:p text:style-name="Text_20_body">Simple table without caption:</text:p>
6869<table:table table:name="Table2" table:style-name="Table2">
6970 <table:table-column table:style-name="Table2.A" />
@@ -129,7 +130,8 @@
129130 </table:table-cell>
130131 </table:table-row>
131132</table:table>
132−<text:p text:style-name="Text_20_body">Simple table indented two spaces:</text:p>
133+<text:p text:style-name="Text_20_body">Simple table indented two
134+spaces:</text:p>
133135<table:table table:name="Table3" table:style-name="Table3">
134136 <table:table-column table:style-name="Table3.A" />
135137 <table:table-column table:style-name="Table3.B" />
@@ -194,7 +196,8 @@
194196 </table:table-cell>
195197 </table:table-row>
196198</table:table>
197−<text:p text:style-name="Caption">Demonstration of simple table syntax.</text:p>
199+<text:p text:style-name="Caption">Demonstration of simple table
200+syntax.</text:p>
198201<text:p text:style-name="Text_20_body">Multiline table with caption:</text:p>
199202<table:table table:name="Table4" table:style-name="Table4">
200203 <table:table-column table:style-name="Table4.A" />
@@ -228,7 +231,8 @@
228231 <text:p text:style-name="P16">12.0</text:p>
229232 </table:table-cell>
230233 <table:table-cell table:style-name="Table4.A1" office:value-type="string">
231− <text:p text:style-name="Table_20_Contents">Example of a row that spans multiple lines.</text:p>
234+ <text:p text:style-name="Table_20_Contents">Example of a row that spans
235+ multiple lines.</text:p>
232236 </table:table-cell>
233237 </table:table-row>
234238 <table:table-row>
@@ -242,12 +246,15 @@
242246 <text:p text:style-name="P16">5.0</text:p>
243247 </table:table-cell>
244248 <table:table-cell table:style-name="Table4.A1" office:value-type="string">
245− <text:p text:style-name="Table_20_Contents">Here's another one. Note the blank line between rows.</text:p>
249+ <text:p text:style-name="Table_20_Contents">Here's another one. Note the
250+ blank line between rows.</text:p>
246251 </table:table-cell>
247252 </table:table-row>
248253</table:table>
249−<text:p text:style-name="Caption">Here's the caption. It may span multiple lines.</text:p>
250−<text:p text:style-name="Text_20_body">Multiline table without caption:</text:p>
254+<text:p text:style-name="Caption">Here's the caption. It may span multiple
255+lines.</text:p>
256+<text:p text:style-name="Text_20_body">Multiline table without
257+caption:</text:p>
251258<table:table table:name="Table5" table:style-name="Table5">
252259 <table:table-column table:style-name="Table5.A" />
253260 <table:table-column table:style-name="Table5.B" />
@@ -280,7 +287,8 @@
280287 <text:p text:style-name="P20">12.0</text:p>
281288 </table:table-cell>
282289 <table:table-cell table:style-name="Table5.A1" office:value-type="string">
283− <text:p text:style-name="Table_20_Contents">Example of a row that spans multiple lines.</text:p>
290+ <text:p text:style-name="Table_20_Contents">Example of a row that spans
291+ multiple lines.</text:p>
284292 </table:table-cell>
285293 </table:table-row>
286294 <table:table-row>
@@ -294,7 +302,8 @@
294302 <text:p text:style-name="P20">5.0</text:p>
295303 </table:table-cell>
296304 <table:table-cell table:style-name="Table5.A1" office:value-type="string">
297− <text:p text:style-name="Table_20_Contents">Here's another one. Note the blank line between rows.</text:p>
305+ <text:p text:style-name="Table_20_Contents">Here's another one. Note the
306+ blank line between rows.</text:p>
298307 </table:table-cell>
299308 </table:table-row>
300309</table:table>
@@ -347,7 +356,8 @@
347356 </table:table-cell>
348357 </table:table-row>
349358</table:table>
350−<text:p text:style-name="Text_20_body">Multiline table without column headers:</text:p>
359+<text:p text:style-name="Text_20_body">Multiline table without column
360+headers:</text:p>
351361<table:table table:name="Table7" table:style-name="Table7">
352362 <table:table-column table:style-name="Table7.A" />
353363 <table:table-column table:style-name="Table7.B" />
@@ -364,7 +374,8 @@
364374 <text:p text:style-name="P30">12.0</text:p>
365375 </table:table-cell>
366376 <table:table-cell table:style-name="Table7.A1" office:value-type="string">
367− <text:p text:style-name="Table_20_Contents">Example of a row that spans multiple lines.</text:p>
377+ <text:p text:style-name="Table_20_Contents">Example of a row that spans
378+ multiple lines.</text:p>
368379 </table:table-cell>
369380 </table:table-row>
370381 <table:table-row>
@@ -378,7 +389,8 @@
378389 <text:p text:style-name="P30">5.0</text:p>
379390 </table:table-cell>
380391 <table:table-cell table:style-name="Table7.A1" office:value-type="string">
381− <text:p text:style-name="Table_20_Contents">Here's another one. Note the blank line between rows.</text:p>
392+ <text:p text:style-name="Table_20_Contents">Here's another one. Note the
393+ blank line between rows.</text:p>
382394 </table:table-cell>
383395 </table:table-row>
384396</table:table>
tests/writer.opendocument+278−120
@@ -859,29 +859,41 @@
859859<text:p text:style-name="Author">John MacFarlane</text:p>
860860<text:p text:style-name="Author">Anonymous</text:p>
861861<text:p text:style-name="Date">July 17, 2006</text:p>
862−<text:p text:style-name="Text_20_body">This is a set of tests for pandoc. Most of them are adapted from John Gruber&#8217;s markdown test suite.</text:p>
862+<text:p text:style-name="Text_20_body">This is a set of tests for pandoc. Most
863+of them are adapted from John Gruber&#8217;s markdown test suite.</text:p>
863864<text:p text:style-name="Horizontal_20_Line" />
864865<text:h text:style-name="Heading_20_1" text:outline-level="1">Headers</text:h>
865−<text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2 with an <text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">embedded link</text:span></text:a></text:h>
866−<text:h text:style-name="Heading_20_3" text:outline-level="3">Level 3 with <text:span text:style-name="T1">emphasis</text:span></text:h>
866+<text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2 with an
867+<text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">embedded
868+link</text:span></text:a></text:h>
869+<text:h text:style-name="Heading_20_3" text:outline-level="3">Level 3 with
870+<text:span text:style-name="T1">emphasis</text:span></text:h>
867871<text:h text:style-name="Heading_20_4" text:outline-level="4">Level 4</text:h>
868872<text:h text:style-name="Heading_20_5" text:outline-level="5">Level 5</text:h>
869873<text:h text:style-name="Heading_20_1" text:outline-level="1">Level 1</text:h>
870−<text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2 with <text:span text:style-name="T2">emphasis</text:span></text:h>
874+<text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2 with
875+<text:span text:style-name="T2">emphasis</text:span></text:h>
871876<text:h text:style-name="Heading_20_3" text:outline-level="3">Level 3</text:h>
872877<text:p text:style-name="Text_20_body">with no blank line</text:p>
873878<text:h text:style-name="Heading_20_2" text:outline-level="2">Level 2</text:h>
874879<text:p text:style-name="Text_20_body">with no blank line</text:p>
875880<text:p text:style-name="Horizontal_20_Line" />
876881<text:h text:style-name="Heading_20_1" text:outline-level="1">Paragraphs</text:h>
877−<text:p text:style-name="Text_20_body">Here&#8217;s a regular paragraph.</text:p>
878−<text:p text:style-name="Text_20_body">In Markdown 1.0.0 and earlier. Version 8. This line turns into a list item. Because a hard-wrapped line in the middle of a paragraph looked like a list item.</text:p>
879−<text:p text:style-name="Text_20_body">Here&#8217;s one with a bullet. * criminey.</text:p>
880−<text:p text:style-name="Text_20_body">There should be a hard line break<text:line-break />here.</text:p>
882+<text:p text:style-name="Text_20_body">Here&#8217;s a regular
883+paragraph.</text:p>
884+<text:p text:style-name="Text_20_body">In Markdown 1.0.0 and earlier. Version
885+8. This line turns into a list item. Because a hard-wrapped line in the middle
886+of a paragraph looked like a list item.</text:p>
887+<text:p text:style-name="Text_20_body">Here&#8217;s one with a bullet. *
888+criminey.</text:p>
889+<text:p text:style-name="Text_20_body">There should be a hard line
890+break<text:line-break />here.</text:p>
881891<text:p text:style-name="Horizontal_20_Line" />
882−<text:h text:style-name="Heading_20_1" text:outline-level="1">Block Quotes</text:h>
892+<text:h text:style-name="Heading_20_1" text:outline-level="1">Block
893+Quotes</text:h>
883894<text:p text:style-name="Text_20_body">E-mail style:</text:p>
884−<text:p text:style-name="P1">This is a block quote. It is pretty short.</text:p>
895+<text:p text:style-name="P1">This is a block quote. It is pretty
896+short.</text:p>
885897<text:p text:style-name="P2">Code in a block quote:</text:p>
886898<text:p text:style-name="P3">sub status {</text:p>
887899<text:p text:style-name="P4"><text:s text:c="4" />print &quot;working&quot;;</text:p>
@@ -898,10 +910,12 @@
898910<text:p text:style-name="P2">Nested block quotes:</text:p>
899911<text:p text:style-name="P7">nested</text:p>
900912<text:p text:style-name="P8">nested</text:p>
901−<text:p text:style-name="Text_20_body">This should not be a block quote: 2 &gt; 1.</text:p>
913+<text:p text:style-name="Text_20_body">This should not be a block quote: 2
914+&gt; 1.</text:p>
902915<text:p text:style-name="Text_20_body">And a following paragraph.</text:p>
903916<text:p text:style-name="Horizontal_20_Line" />
904−<text:h text:style-name="Heading_20_1" text:outline-level="1">Code Blocks</text:h>
917+<text:h text:style-name="Heading_20_1" text:outline-level="1">Code
918+Blocks</text:h>
905919<text:p text:style-name="Text_20_body">Code:</text:p>
906920<text:p text:style-name="P9">---- (should be four hyphens)</text:p>
907921<text:p text:style-name="P10"></text:p>
@@ -1042,7 +1056,8 @@
10421056<text:list text:style-name="L12">
10431057 <text:list-item>
10441058 <text:p text:style-name="P29">Item 1, graf one.</text:p>
1045− <text:p text:style-name="P29">Item 1. graf two. The quick brown fox jumped over the lazy dog&#8217;s back.</text:p>
1059+ <text:p text:style-name="P29">Item 1. graf two. The quick brown fox jumped
1060+ over the lazy dog&#8217;s back.</text:p>
10461061 </text:list-item>
10471062 <text:list-item>
10481063 <text:p text:style-name="P29">Item 2.</text:p>
@@ -1055,14 +1070,14 @@
10551070<text:list text:style-name="L13">
10561071 <text:list-item>
10571072 <text:p text:style-name="P30">Tab</text:p><text:list text:style-name="L14">
1058− <text:list-item>
1059− <text:p text:style-name="P31">Tab</text:p><text:list text:style-name="L15">
1060− <text:list-item>
1061− <text:p text:style-name="P32">Tab</text:p>
1062− </text:list-item>
1063− </text:list>
1064− </text:list-item>
1065− </text:list>
1073+ <text:list-item>
1074+ <text:p text:style-name="P31">Tab</text:p><text:list text:style-name="L15">
1075+ <text:list-item>
1076+ <text:p text:style-name="P32">Tab</text:p>
1077+ </text:list-item>
1078+ </text:list>
1079+ </text:list-item>
1080+ </text:list>
10661081 </text:list-item>
10671082</text:list>
10681083<text:p text:style-name="Text_20_body">Here&#8217;s another:</text:p>
@@ -1088,7 +1103,8 @@
10881103 <text:p text:style-name="P33">Third</text:p>
10891104 </text:list-item>
10901105</text:list>
1091−<text:p text:style-name="Text_20_body">Same thing but with paragraphs:</text:p>
1106+<text:p text:style-name="Text_20_body">Same thing but with
1107+paragraphs:</text:p>
10921108<text:list text:style-name="L18">
10931109 <text:list-item>
10941110 <text:p text:style-name="P35">First</text:p>
@@ -1111,23 +1127,29 @@
11111127 <text:p text:style-name="P35">Third</text:p>
11121128 </text:list-item>
11131129</text:list>
1114−<text:h text:style-name="Heading_20_2" text:outline-level="2">Tabs and spaces</text:h>
1130+<text:h text:style-name="Heading_20_2" text:outline-level="2">Tabs and
1131+spaces</text:h>
11151132<text:list text:style-name="L20">
11161133 <text:list-item>
1117− <text:p text:style-name="P37">this is a list item indented with tabs</text:p>
1134+ <text:p text:style-name="P37">this is a list item indented with
1135+ tabs</text:p>
11181136 </text:list-item>
11191137 <text:list-item>
1120− <text:p text:style-name="P37">this is a list item indented with spaces</text:p><text:list text:style-name="L21">
1121− <text:list-item>
1122− <text:p text:style-name="P38">this is an example list item indented with tabs</text:p>
1123− </text:list-item>
1124− <text:list-item>
1125− <text:p text:style-name="P38">this is an example list item indented with spaces</text:p>
1126− </text:list-item>
1127− </text:list>
1138+ <text:p text:style-name="P37">this is a list item indented with
1139+ spaces</text:p><text:list text:style-name="L21">
1140+ <text:list-item>
1141+ <text:p text:style-name="P38">this is an example list item indented
1142+ with tabs</text:p>
1143+ </text:list-item>
1144+ <text:list-item>
1145+ <text:p text:style-name="P38">this is an example list item indented
1146+ with spaces</text:p>
1147+ </text:list-item>
1148+ </text:list>
11281149 </text:list-item>
11291150</text:list>
1130−<text:h text:style-name="Heading_20_2" text:outline-level="2">Fancy list markers</text:h>
1151+<text:h text:style-name="Heading_20_2" text:outline-level="2">Fancy list
1152+markers</text:h>
11311153<text:list text:style-name="L22">
11321154 <text:list-item>
11331155 <text:p text:style-name="P39">begins with 2</text:p>
@@ -1137,7 +1159,8 @@
11371159 <text:p text:style-name="P39">with a continuation</text:p>
11381160 <text:list>
11391161 <text:list-item>
1140− <text:p text:style-name="P39">sublist with roman numerals, starting with 4</text:p>
1162+ <text:p text:style-name="P39">sublist with roman numerals, starting
1163+ with 4</text:p>
11411164 </text:list-item>
11421165 <text:list-item>
11431166 <text:p text:style-name="P39">more items</text:p>
@@ -1192,21 +1215,26 @@
11921215<text:p text:style-name="Text_20_body">M.A. 2007</text:p>
11931216<text:p text:style-name="Text_20_body">B. Williams</text:p>
11941217<text:p text:style-name="Horizontal_20_Line" />
1195−<text:h text:style-name="Heading_20_1" text:outline-level="1">Definition Lists</text:h>
1218+<text:h text:style-name="Heading_20_1" text:outline-level="1">Definition
1219+Lists</text:h>
11961220<text:p text:style-name="Text_20_body">Tight using spaces:</text:p>
11971221<text:p text:style-name="Definition_20_Term_20_Tight">apple</text:p>
11981222<text:p text:style-name="Definition_20_Definition_20_Tight">red fruit</text:p>
11991223<text:p text:style-name="Definition_20_Term_20_Tight">orange</text:p>
1200−<text:p text:style-name="Definition_20_Definition_20_Tight">orange fruit</text:p>
1224+<text:p text:style-name="Definition_20_Definition_20_Tight">orange
1225+fruit</text:p>
12011226<text:p text:style-name="Definition_20_Term_20_Tight">banana</text:p>
1202−<text:p text:style-name="Definition_20_Definition_20_Tight">yellow fruit</text:p>
1227+<text:p text:style-name="Definition_20_Definition_20_Tight">yellow
1228+fruit</text:p>
12031229<text:p text:style-name="Text_20_body">Tight using tabs:</text:p>
12041230<text:p text:style-name="Definition_20_Term_20_Tight">apple</text:p>
12051231<text:p text:style-name="Definition_20_Definition_20_Tight">red fruit</text:p>
12061232<text:p text:style-name="Definition_20_Term_20_Tight">orange</text:p>
1207−<text:p text:style-name="Definition_20_Definition_20_Tight">orange fruit</text:p>
1233+<text:p text:style-name="Definition_20_Definition_20_Tight">orange
1234+fruit</text:p>
12081235<text:p text:style-name="Definition_20_Term_20_Tight">banana</text:p>
1209−<text:p text:style-name="Definition_20_Definition_20_Tight">yellow fruit</text:p>
1236+<text:p text:style-name="Definition_20_Definition_20_Tight">yellow
1237+fruit</text:p>
12101238<text:p text:style-name="Text_20_body">Loose:</text:p>
12111239<text:p text:style-name="Definition_20_Term">apple</text:p>
12121240<text:p text:style-name="Definition_20_Definition">red fruit</text:p>
@@ -1216,15 +1244,19 @@
12161244<text:p text:style-name="Definition_20_Definition">yellow fruit</text:p>
12171245<text:p text:style-name="Text_20_body">Multiple blocks with italics:</text:p>
12181246<text:p text:style-name="Definition_20_Term"><text:span text:style-name="T3">apple</text:span></text:p>
1219−<text:p text:style-name="Definition_20_Definition">red fruit</text:p><text:p text:style-name="Definition_20_Definition">contains seeds, crisp, pleasant to taste</text:p>
1247+<text:p text:style-name="Definition_20_Definition">red
1248+fruit</text:p><text:p text:style-name="Definition_20_Definition">contains
1249+seeds, crisp, pleasant to taste</text:p>
12201250<text:p text:style-name="Definition_20_Term"><text:span text:style-name="T4">orange</text:span></text:p>
1221−<text:p text:style-name="Definition_20_Definition">orange fruit</text:p><text:p text:style-name="P42">{ orange code block }</text:p><text:p text:style-name="P43">orange block quote</text:p>
1251+<text:p text:style-name="Definition_20_Definition">orange fruit</text:p><text:p text:style-name="P42">{ orange code block }</text:p><text:p text:style-name="P43">orange
1252+block quote</text:p>
12221253<text:p text:style-name="Text_20_body">Multiple definitions, tight:</text:p>
12231254<text:p text:style-name="Definition_20_Term_20_Tight">apple</text:p>
12241255<text:p text:style-name="Definition_20_Definition_20_Tight">red fruit</text:p>
12251256<text:p text:style-name="Definition_20_Definition_20_Tight">computer</text:p>
12261257<text:p text:style-name="Definition_20_Term_20_Tight">orange</text:p>
1227−<text:p text:style-name="Definition_20_Definition_20_Tight">orange fruit</text:p>
1258+<text:p text:style-name="Definition_20_Definition_20_Tight">orange
1259+fruit</text:p>
12281260<text:p text:style-name="Definition_20_Definition_20_Tight">bank</text:p>
12291261<text:p text:style-name="Text_20_body">Multiple definitions, loose:</text:p>
12301262<text:p text:style-name="Definition_20_Term">apple</text:p>
@@ -1233,31 +1265,39 @@
12331265<text:p text:style-name="Definition_20_Term">orange</text:p>
12341266<text:p text:style-name="Definition_20_Definition">orange fruit</text:p>
12351267<text:p text:style-name="Definition_20_Definition">bank</text:p>
1236−<text:p text:style-name="Text_20_body">Blank line after term, indented marker, alternate markers:</text:p>
1268+<text:p text:style-name="Text_20_body">Blank line after term, indented marker,
1269+alternate markers:</text:p>
12371270<text:p text:style-name="Definition_20_Term">apple</text:p>
12381271<text:p text:style-name="Definition_20_Definition">red fruit</text:p>
12391272<text:p text:style-name="Definition_20_Definition">computer</text:p>
12401273<text:p text:style-name="Definition_20_Term">orange</text:p>
1241−<text:p text:style-name="Definition_20_Definition">orange fruit</text:p><text:list text:style-name="L25">
1242− <text:list-item>
1243− <text:p text:style-name="P44">sublist</text:p>
1244− </text:list-item>
1245− <text:list-item>
1246− <text:p text:style-name="P44">sublist</text:p>
1247− </text:list-item>
1248− </text:list>
1249−<text:h text:style-name="Heading_20_1" text:outline-level="1">HTML Blocks</text:h>
1274+<text:p text:style-name="Definition_20_Definition">orange
1275+fruit</text:p><text:list text:style-name="L25">
1276+ <text:list-item>
1277+ <text:p text:style-name="P44">sublist</text:p>
1278+ </text:list-item>
1279+ <text:list-item>
1280+ <text:p text:style-name="P44">sublist</text:p>
1281+ </text:list-item>
1282+</text:list>
1283+<text:h text:style-name="Heading_20_1" text:outline-level="1">HTML
1284+Blocks</text:h>
12501285<text:p text:style-name="Text_20_body">Simple block on one line:</text:p>
12511286<text:p text:style-name="Text_20_body">foo</text:p>
1252−<text:p text:style-name="Text_20_body">And nested without indentation:</text:p>
1287+<text:p text:style-name="Text_20_body">And nested without
1288+indentation:</text:p>
12531289<text:p text:style-name="Text_20_body">foo</text:p>
12541290<text:p text:style-name="Text_20_body">bar</text:p>
1255−<text:p text:style-name="Text_20_body">Interpreted markdown in a table:</text:p>
1256−<text:p text:style-name="Text_20_body">This is <text:span text:style-name="T5">emphasized</text:span></text:p>
1257−<text:p text:style-name="Text_20_body">And this is <text:span text:style-name="T6">strong</text:span></text:p>
1291+<text:p text:style-name="Text_20_body">Interpreted markdown in a
1292+table:</text:p>
1293+<text:p text:style-name="Text_20_body">This is
1294+<text:span text:style-name="T5">emphasized</text:span></text:p>
1295+<text:p text:style-name="Text_20_body">And this is
1296+<text:span text:style-name="T6">strong</text:span></text:p>
12581297<text:p text:style-name="Text_20_body">Here&#8217;s a simple block:</text:p>
12591298<text:p text:style-name="Text_20_body">foo</text:p>
1260−<text:p text:style-name="Text_20_body">This should be a code block, though:</text:p>
1299+<text:p text:style-name="Text_20_body">This should be a code block,
1300+though:</text:p>
12611301<text:p text:style-name="P45">&lt;div&gt;</text:p>
12621302<text:p text:style-name="P46"><text:s text:c="4" />foo</text:p>
12631303<text:p text:style-name="P47">&lt;/div&gt;</text:p>
@@ -1265,37 +1305,82 @@
12651305<text:p text:style-name="P48">&lt;div&gt;foo&lt;/div&gt;</text:p>
12661306<text:p text:style-name="Text_20_body">Now, nested:</text:p>
12671307<text:p text:style-name="Text_20_body">foo</text:p>
1268−<text:p text:style-name="Text_20_body">This should just be an HTML comment:</text:p>
1308+<text:p text:style-name="Text_20_body">This should just be an HTML
1309+comment:</text:p>
12691310<text:p text:style-name="Text_20_body">Multiline:</text:p>
12701311<text:p text:style-name="Text_20_body">Code block:</text:p>
12711312<text:p text:style-name="P49">&lt;!-- Comment --&gt;</text:p>
1272−<text:p text:style-name="Text_20_body">Just plain comment, with trailing spaces on the line:</text:p>
1313+<text:p text:style-name="Text_20_body">Just plain comment, with trailing
1314+spaces on the line:</text:p>
12731315<text:p text:style-name="Text_20_body">Code:</text:p>
12741316<text:p text:style-name="P50">&lt;hr /&gt;</text:p>
12751317<text:p text:style-name="Text_20_body">Hr&#8217;s:</text:p>
12761318<text:p text:style-name="Horizontal_20_Line" />
1277−<text:h text:style-name="Heading_20_1" text:outline-level="1">Inline Markup</text:h>
1278−<text:p text:style-name="Text_20_body">This is <text:span text:style-name="T7">emphasized</text:span>, and so <text:span text:style-name="T8">is</text:span><text:span text:style-name="T9"> </text:span><text:span text:style-name="T10">this</text:span>.</text:p>
1279−<text:p text:style-name="Text_20_body">This is <text:span text:style-name="T11">strong</text:span>, and so <text:span text:style-name="T12">is</text:span><text:span text:style-name="T13"> </text:span><text:span text:style-name="T14">this</text:span>.</text:p>
1280−<text:p text:style-name="Text_20_body">An <text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="T15">emphasized</text:span><text:span text:style-name="T16"> </text:span><text:span text:style-name="T17">link</text:span></text:span></text:a>.</text:p>
1281−<text:p text:style-name="Text_20_body"><text:span text:style-name="T18">This</text:span><text:span text:style-name="T19"> </text:span><text:span text:style-name="T20">is</text:span><text:span text:style-name="T21"> </text:span><text:span text:style-name="T22">strong</text:span><text:span text:style-name="T23"> </text:span><text:span text:style-name="T24">and</text:span><text:span text:style-name="T25"> </text:span><text:span text:style-name="T26">em</text:span><text:span text:style-name="T27">.</text:span></text:p>
1282−<text:p text:style-name="Text_20_body">So is <text:span text:style-name="T28">this</text:span> word.</text:p>
1283−<text:p text:style-name="Text_20_body"><text:span text:style-name="T29">This</text:span><text:span text:style-name="T30"> </text:span><text:span text:style-name="T31">is</text:span><text:span text:style-name="T32"> </text:span><text:span text:style-name="T33">strong</text:span><text:span text:style-name="T34"> </text:span><text:span text:style-name="T35">and</text:span><text:span text:style-name="T36"> </text:span><text:span text:style-name="T37">em</text:span><text:span text:style-name="T38">.</text:span></text:p>
1284−<text:p text:style-name="Text_20_body">So is <text:span text:style-name="T39">this</text:span> word.</text:p>
1285−<text:p text:style-name="Text_20_body">This is code: <text:span text:style-name="Teletype">&gt;</text:span>, <text:span text:style-name="Teletype">$</text:span>, <text:span text:style-name="Teletype">\</text:span>, <text:span text:style-name="Teletype">\$</text:span>, <text:span text:style-name="Teletype">&lt;html&gt;</text:span>.</text:p>
1286−<text:p text:style-name="Text_20_body"><text:span text:style-name="T40">This</text:span><text:span text:style-name="T41"> </text:span><text:span text:style-name="T42">is</text:span><text:span text:style-name="T43"> </text:span><text:span text:style-name="T44">strikeout</text:span><text:span text:style-name="T45">.</text:span></text:p>
1287−<text:p text:style-name="Text_20_body">Superscripts: a<text:span text:style-name="T46">bc</text:span>d a<text:span text:style-name="T47">hello</text:span> a<text:span text:style-name="T48">hello</text:span><text:span text:style-name="T49"> </text:span><text:span text:style-name="T50">there</text:span>.</text:p>
1288−<text:p text:style-name="Text_20_body">Subscripts: H<text:span text:style-name="T51">2</text:span>O, H<text:span text:style-name="T52">23</text:span>O, H<text:span text:style-name="T53">many</text:span><text:span text:style-name="T54"> </text:span><text:span text:style-name="T55">of</text:span><text:span text:style-name="T56"> </text:span><text:span text:style-name="T57">them</text:span>O.</text:p>
1289−<text:p text:style-name="Text_20_body">These should not be superscripts or subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</text:p>
1319+<text:h text:style-name="Heading_20_1" text:outline-level="1">Inline
1320+Markup</text:h>
1321+<text:p text:style-name="Text_20_body">This is
1322+<text:span text:style-name="T7">emphasized</text:span>, and so
1323+<text:span text:style-name="T8">is</text:span><text:span text:style-name="T9">
1324+</text:span><text:span text:style-name="T10">this</text:span>.</text:p>
1325+<text:p text:style-name="Text_20_body">This is
1326+<text:span text:style-name="T11">strong</text:span>, and so
1327+<text:span text:style-name="T12">is</text:span><text:span text:style-name="T13">
1328+</text:span><text:span text:style-name="T14">this</text:span>.</text:p>
1329+<text:p text:style-name="Text_20_body">An
1330+<text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="T15">emphasized</text:span><text:span text:style-name="T16">
1331+</text:span><text:span text:style-name="T17">link</text:span></text:span></text:a>.</text:p>
1332+<text:p text:style-name="Text_20_body"><text:span text:style-name="T18">This</text:span><text:span text:style-name="T19">
1333+</text:span><text:span text:style-name="T20">is</text:span><text:span text:style-name="T21">
1334+</text:span><text:span text:style-name="T22">strong</text:span><text:span text:style-name="T23">
1335+</text:span><text:span text:style-name="T24">and</text:span><text:span text:style-name="T25">
1336+</text:span><text:span text:style-name="T26">em</text:span><text:span text:style-name="T27">.</text:span></text:p>
1337+<text:p text:style-name="Text_20_body">So is
1338+<text:span text:style-name="T28">this</text:span> word.</text:p>
1339+<text:p text:style-name="Text_20_body"><text:span text:style-name="T29">This</text:span><text:span text:style-name="T30">
1340+</text:span><text:span text:style-name="T31">is</text:span><text:span text:style-name="T32">
1341+</text:span><text:span text:style-name="T33">strong</text:span><text:span text:style-name="T34">
1342+</text:span><text:span text:style-name="T35">and</text:span><text:span text:style-name="T36">
1343+</text:span><text:span text:style-name="T37">em</text:span><text:span text:style-name="T38">.</text:span></text:p>
1344+<text:p text:style-name="Text_20_body">So is
1345+<text:span text:style-name="T39">this</text:span> word.</text:p>
1346+<text:p text:style-name="Text_20_body">This is code:
1347+<text:span text:style-name="Teletype">&gt;</text:span>,
1348+<text:span text:style-name="Teletype">$</text:span>,
1349+<text:span text:style-name="Teletype">\</text:span>,
1350+<text:span text:style-name="Teletype">\$</text:span>,
1351+<text:span text:style-name="Teletype">&lt;html&gt;</text:span>.</text:p>
1352+<text:p text:style-name="Text_20_body"><text:span text:style-name="T40">This</text:span><text:span text:style-name="T41">
1353+</text:span><text:span text:style-name="T42">is</text:span><text:span text:style-name="T43">
1354+</text:span><text:span text:style-name="T44">strikeout</text:span><text:span text:style-name="T45">.</text:span></text:p>
1355+<text:p text:style-name="Text_20_body">Superscripts:
1356+a<text:span text:style-name="T46">bc</text:span>d
1357+a<text:span text:style-name="T47">hello</text:span>
1358+a<text:span text:style-name="T48">hello</text:span><text:span text:style-name="T49"> </text:span><text:span text:style-name="T50">there</text:span>.</text:p>
1359+<text:p text:style-name="Text_20_body">Subscripts:
1360+H<text:span text:style-name="T51">2</text:span>O,
1361+H<text:span text:style-name="T52">23</text:span>O,
1362+H<text:span text:style-name="T53">many</text:span><text:span text:style-name="T54"> </text:span><text:span text:style-name="T55">of</text:span><text:span text:style-name="T56"> </text:span><text:span text:style-name="T57">them</text:span>O.</text:p>
1363+<text:p text:style-name="Text_20_body">These should not be superscripts or
1364+subscripts, because of the unescaped spaces: a^b c^d, a~b c~d.</text:p>
12901365<text:p text:style-name="Horizontal_20_Line" />
1291−<text:h text:style-name="Heading_20_1" text:outline-level="1">Smart quotes, ellipses, dashes</text:h>
1292−<text:p text:style-name="Text_20_body">&#8220;Hello,&#8221; said the spider. &#8220;&#8216;Shelob&#8217; is my name.&#8221;</text:p>
1293−<text:p text:style-name="Text_20_body">&#8216;A&#8217;, &#8216;B&#8217;, and &#8216;C&#8217; are letters.</text:p>
1294−<text:p text:style-name="Text_20_body">&#8216;Oak,&#8217; &#8216;elm,&#8217; and &#8216;beech&#8217; are names of trees. So is &#8216;pine.&#8217;</text:p>
1295−<text:p text:style-name="Text_20_body">&#8216;He said, &#8220;I want to go.&#8221;&#8217; Were you alive in the 70&#8217;s?</text:p>
1296−<text:p text:style-name="Text_20_body">Here is some quoted &#8216;<text:span text:style-name="Teletype">code</text:span>&#8217; and a &#8220;<text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">quoted link</text:span></text:a>&#8221;.</text:p>
1297−<text:p text:style-name="Text_20_body">Some dashes: one&#8212;two &#8212; three&#8212;four &#8212; five.</text:p>
1298−<text:p text:style-name="Text_20_body">Dashes between numbers: 5&#8211;7, 255&#8211;66, 1987&#8211;1999.</text:p>
1366+<text:h text:style-name="Heading_20_1" text:outline-level="1">Smart quotes,
1367+ellipses, dashes</text:h>
1368+<text:p text:style-name="Text_20_body">&#8220;Hello,&#8221; said the spider.
1369+&#8220;&#8216;Shelob&#8217; is my name.&#8221;</text:p>
1370+<text:p text:style-name="Text_20_body">&#8216;A&#8217;, &#8216;B&#8217;, and
1371+&#8216;C&#8217; are letters.</text:p>
1372+<text:p text:style-name="Text_20_body">&#8216;Oak,&#8217; &#8216;elm,&#8217;
1373+and &#8216;beech&#8217; are names of trees. So is &#8216;pine.&#8217;</text:p>
1374+<text:p text:style-name="Text_20_body">&#8216;He said, &#8220;I want to
1375+go.&#8221;&#8217; Were you alive in the 70&#8217;s?</text:p>
1376+<text:p text:style-name="Text_20_body">Here is some quoted
1377+&#8216;<text:span text:style-name="Teletype">code</text:span>&#8217; and a
1378+&#8220;<text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">quoted
1379+link</text:span></text:a>&#8221;.</text:p>
1380+<text:p text:style-name="Text_20_body">Some dashes: one&#8212;two &#8212;
1381+three&#8212;four &#8212; five.</text:p>
1382+<text:p text:style-name="Text_20_body">Dashes between numbers: 5&#8211;7,
1383+255&#8211;66, 1987&#8211;1999.</text:p>
12991384<text:p text:style-name="Text_20_body">Ellipses&#8230;and&#8230;and&#8230;.</text:p>
13001385<text:p text:style-name="Horizontal_20_Line" />
13011386<text:h text:style-name="Heading_20_1" text:outline-level="1">LaTeX</text:h>
@@ -1319,30 +1404,43 @@
13191404 <text:p text:style-name="P51"><text:span text:style-name="T60">p</text:span>-Tree</text:p>
13201405 </text:list-item>
13211406 <text:list-item>
1322− <text:p text:style-name="P51">Here&#8217;s some display math: $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</text:p>
1407+ <text:p text:style-name="P51">Here&#8217;s some display math:
1408+ $\frac{d}{dx}f(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$</text:p>
13231409 </text:list-item>
13241410 <text:list-item>
1325− <text:p text:style-name="P51">Here&#8217;s one that has a line break in it: α + ω × <text:span text:style-name="T61">x</text:span><text:span text:style-name="T62">2</text:span>.</text:p>
1411+ <text:p text:style-name="P51">Here&#8217;s one that has a line break in
1412+ it:
1413+ α + ω × <text:span text:style-name="T61">x</text:span><text:span text:style-name="T62">2</text:span>.</text:p>
13261414 </text:list-item>
13271415</text:list>
13281416<text:p text:style-name="Text_20_body">These shouldn&#8217;t be math:</text:p>
13291417<text:list text:style-name="L27">
13301418 <text:list-item>
1331− <text:p text:style-name="P52">To get the famous equation, write <text:span text:style-name="Teletype">$e = mc^2$</text:span>.</text:p>
1419+ <text:p text:style-name="P52">To get the famous equation, write
1420+ <text:span text:style-name="Teletype">$e = mc^2$</text:span>.</text:p>
13321421 </text:list-item>
13331422 <text:list-item>
1334− <text:p text:style-name="P52">$22,000 is a <text:span text:style-name="T63">lot</text:span> of money. So is $34,000. (It worked if &#8220;lot&#8221; is emphasized.)</text:p>
1423+ <text:p text:style-name="P52">$22,000 is a
1424+ <text:span text:style-name="T63">lot</text:span> of money. So is $34,000.
1425+ (It worked if &#8220;lot&#8221; is emphasized.)</text:p>
13351426 </text:list-item>
13361427 <text:list-item>
13371428 <text:p text:style-name="P52">Shoes ($20) and socks ($5).</text:p>
13381429 </text:list-item>
13391430 <text:list-item>
1340− <text:p text:style-name="P52">Escaped <text:span text:style-name="Teletype">$</text:span>: $73 <text:span text:style-name="T64">this</text:span><text:span text:style-name="T65"> </text:span><text:span text:style-name="T66">should</text:span><text:span text:style-name="T67"> </text:span><text:span text:style-name="T68">be</text:span><text:span text:style-name="T69"> </text:span><text:span text:style-name="T70">emphasized</text:span> 23$.</text:p>
1431+ <text:p text:style-name="P52">Escaped
1432+ <text:span text:style-name="Teletype">$</text:span>: $73
1433+ <text:span text:style-name="T64">this</text:span><text:span text:style-name="T65">
1434+ </text:span><text:span text:style-name="T66">should</text:span><text:span text:style-name="T67">
1435+ </text:span><text:span text:style-name="T68">be</text:span><text:span text:style-name="T69">
1436+ </text:span><text:span text:style-name="T70">emphasized</text:span>
1437+ 23$.</text:p>
13411438 </text:list-item>
13421439</text:list>
13431440<text:p text:style-name="Text_20_body">Here&#8217;s a LaTeX table:</text:p>
13441441<text:p text:style-name="Horizontal_20_Line" />
1345−<text:h text:style-name="Heading_20_1" text:outline-level="1">Special Characters</text:h>
1442+<text:h text:style-name="Heading_20_1" text:outline-level="1">Special
1443+Characters</text:h>
13461444<text:p text:style-name="Text_20_body">Here is some unicode:</text:p>
13471445<text:list text:style-name="L28">
13481446 <text:list-item>
@@ -1361,8 +1459,10 @@
13611459 <text:p text:style-name="P53">copyright: ©</text:p>
13621460 </text:list-item>
13631461</text:list>
1364−<text:p text:style-name="Text_20_body">AT&amp;T has an ampersand in their name.</text:p>
1365−<text:p text:style-name="Text_20_body">AT&amp;T is another way to write it.</text:p>
1462+<text:p text:style-name="Text_20_body">AT&amp;T has an ampersand in their
1463+name.</text:p>
1464+<text:p text:style-name="Text_20_body">AT&amp;T is another way to write
1465+it.</text:p>
13661466<text:p text:style-name="Text_20_body">This &amp; that.</text:p>
13671467<text:p text:style-name="Text_20_body">4 &lt; 5.</text:p>
13681468<text:p text:style-name="Text_20_body">6 &gt; 5.</text:p>
@@ -1385,35 +1485,63 @@
13851485<text:p text:style-name="Horizontal_20_Line" />
13861486<text:h text:style-name="Heading_20_1" text:outline-level="1">Links</text:h>
13871487<text:h text:style-name="Heading_20_2" text:outline-level="2">Explicit</text:h>
1388−<text:p text:style-name="Text_20_body">Just a <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">URL</text:span></text:a>.</text:p>
1389−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title"><text:span text:style-name="Definition">URL and title</text:span></text:a>.</text:p>
1390−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title preceded by two spaces"><text:span text:style-name="Definition">URL and title</text:span></text:a>.</text:p>
1391−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title preceded by a tab"><text:span text:style-name="Definition">URL and title</text:span></text:a>.</text:p>
1392−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title with &quot;quotes&quot; in it"><text:span text:style-name="Definition">URL and title</text:span></text:a></text:p>
1393−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title with single quotes"><text:span text:style-name="Definition">URL and title</text:span></text:a></text:p>
1488+<text:p text:style-name="Text_20_body">Just a
1489+<text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">URL</text:span></text:a>.</text:p>
1490+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title"><text:span text:style-name="Definition">URL
1491+and title</text:span></text:a>.</text:p>
1492+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title preceded by two spaces"><text:span text:style-name="Definition">URL
1493+and title</text:span></text:a>.</text:p>
1494+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title preceded by a tab"><text:span text:style-name="Definition">URL
1495+and title</text:span></text:a>.</text:p>
1496+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title with &quot;quotes&quot; in it"><text:span text:style-name="Definition">URL
1497+and title</text:span></text:a></text:p>
1498+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name="title with single quotes"><text:span text:style-name="Definition">URL
1499+and title</text:span></text:a></text:p>
13941500<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/with_underscore" office:name=""><text:span text:style-name="Definition">with_underscore</text:span></text:a></text:p>
1395−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="mailto:nobody@nowhere.net" office:name=""><text:span text:style-name="Definition">Email link</text:span></text:a></text:p>
1501+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="mailto:nobody@nowhere.net" office:name=""><text:span text:style-name="Definition">Email
1502+link</text:span></text:a></text:p>
13961503<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="" office:name=""><text:span text:style-name="Definition">Empty</text:span></text:a>.</text:p>
13971504<text:h text:style-name="Heading_20_2" text:outline-level="2">Reference</text:h>
1398−<text:p text:style-name="Text_20_body">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1399−<text:p text:style-name="Text_20_body">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1400−<text:p text:style-name="Text_20_body">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1401−<text:p text:style-name="Text_20_body">With <text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">embedded [brackets]</text:span></text:a>.</text:p>
1402−<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">b</text:span></text:a> by itself should be a link.</text:p>
1403−<text:p text:style-name="Text_20_body">Indented <text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">once</text:span></text:a>.</text:p>
1404−<text:p text:style-name="Text_20_body">Indented <text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">twice</text:span></text:a>.</text:p>
1405−<text:p text:style-name="Text_20_body">Indented <text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">thrice</text:span></text:a>.</text:p>
1505+<text:p text:style-name="Text_20_body">Foo
1506+<text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1507+<text:p text:style-name="Text_20_body">Foo
1508+<text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1509+<text:p text:style-name="Text_20_body">Foo
1510+<text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1511+<text:p text:style-name="Text_20_body">With
1512+<text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">embedded
1513+[brackets]</text:span></text:a>.</text:p>
1514+<text:p text:style-name="Text_20_body"><text:a xlink:type="simple" xlink:href="/url/" office:name=""><text:span text:style-name="Definition">b</text:span></text:a>
1515+by itself should be a link.</text:p>
1516+<text:p text:style-name="Text_20_body">Indented
1517+<text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">once</text:span></text:a>.</text:p>
1518+<text:p text:style-name="Text_20_body">Indented
1519+<text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">twice</text:span></text:a>.</text:p>
1520+<text:p text:style-name="Text_20_body">Indented
1521+<text:a xlink:type="simple" xlink:href="/url" office:name=""><text:span text:style-name="Definition">thrice</text:span></text:a>.</text:p>
14061522<text:p text:style-name="Text_20_body">This should [not][] be a link.</text:p>
14071523<text:p text:style-name="P54">[not]: /url</text:p>
1408−<text:p text:style-name="Text_20_body">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name="Title with &quot;quotes&quot; inside"><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1409−<text:p text:style-name="Text_20_body">Foo <text:a xlink:type="simple" xlink:href="/url/" office:name="Title with &quot;quote&quot; inside"><text:span text:style-name="Definition">biz</text:span></text:a>.</text:p>
1410−<text:h text:style-name="Heading_20_2" text:outline-level="2">With ampersands</text:h>
1411−<text:p text:style-name="Text_20_body">Here&#8217;s a <text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">link with an ampersand in the URL</text:span></text:a>.</text:p>
1412−<text:p text:style-name="Text_20_body">Here&#8217;s a link with an amersand in the link text: <text:a xlink:type="simple" xlink:href="http://att.com/" office:name="AT&amp;T"><text:span text:style-name="Definition">AT&amp;T</text:span></text:a>.</text:p>
1413−<text:p text:style-name="Text_20_body">Here&#8217;s an <text:a xlink:type="simple" xlink:href="/script?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">inline link</text:span></text:a>.</text:p>
1414−<text:p text:style-name="Text_20_body">Here&#8217;s an <text:a xlink:type="simple" xlink:href="/script?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">inline link in pointy braces</text:span></text:a>.</text:p>
1524+<text:p text:style-name="Text_20_body">Foo
1525+<text:a xlink:type="simple" xlink:href="/url/" office:name="Title with &quot;quotes&quot; inside"><text:span text:style-name="Definition">bar</text:span></text:a>.</text:p>
1526+<text:p text:style-name="Text_20_body">Foo
1527+<text:a xlink:type="simple" xlink:href="/url/" office:name="Title with &quot;quote&quot; inside"><text:span text:style-name="Definition">biz</text:span></text:a>.</text:p>
1528+<text:h text:style-name="Heading_20_2" text:outline-level="2">With
1529+ampersands</text:h>
1530+<text:p text:style-name="Text_20_body">Here&#8217;s a
1531+<text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">link
1532+with an ampersand in the URL</text:span></text:a>.</text:p>
1533+<text:p text:style-name="Text_20_body">Here&#8217;s a link with an amersand in
1534+the link text:
1535+<text:a xlink:type="simple" xlink:href="http://att.com/" office:name="AT&amp;T"><text:span text:style-name="Definition">AT&amp;T</text:span></text:a>.</text:p>
1536+<text:p text:style-name="Text_20_body">Here&#8217;s an
1537+<text:a xlink:type="simple" xlink:href="/script?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">inline
1538+link</text:span></text:a>.</text:p>
1539+<text:p text:style-name="Text_20_body">Here&#8217;s an
1540+<text:a xlink:type="simple" xlink:href="/script?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition">inline
1541+link in pointy braces</text:span></text:a>.</text:p>
14151542<text:h text:style-name="Heading_20_2" text:outline-level="2">Autolinks</text:h>
1416−<text:p text:style-name="Text_20_body">With an ampersand: <text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">http://example.com/?foo=1&amp;bar=2</text:span></text:span></text:a></text:p>
1543+<text:p text:style-name="Text_20_body">With an ampersand:
1544+<text:a xlink:type="simple" xlink:href="http://example.com/?foo=1&amp;bar=2" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">http://example.com/?foo=1&amp;bar=2</text:span></text:span></text:a></text:p>
14171545<text:list text:style-name="L29">
14181546 <text:list-item>
14191547 <text:p text:style-name="P55">In a list?</text:p>
@@ -1425,25 +1553,55 @@
14251553 <text:p text:style-name="P55">It should.</text:p>
14261554 </text:list-item>
14271555</text:list>
1428−<text:p text:style-name="Text_20_body">An e-mail address: <text:a xlink:type="simple" xlink:href="mailto:nobody@nowhere.net" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">nobody@nowhere.net</text:span></text:span></text:a></text:p>
1429−<text:p text:style-name="P56">Blockquoted: <text:a xlink:type="simple" xlink:href="http://example.com/" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">http://example.com/</text:span></text:span></text:a></text:p>
1430−<text:p text:style-name="Text_20_body">Auto-links should not occur here: <text:span text:style-name="Teletype">&lt;http://example.com/&gt;</text:span></text:p>
1556+<text:p text:style-name="Text_20_body">An e-mail address:
1557+<text:a xlink:type="simple" xlink:href="mailto:nobody@nowhere.net" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">nobody@nowhere.net</text:span></text:span></text:a></text:p>
1558+<text:p text:style-name="P56">Blockquoted:
1559+<text:a xlink:type="simple" xlink:href="http://example.com/" office:name=""><text:span text:style-name="Definition"><text:span text:style-name="Teletype">http://example.com/</text:span></text:span></text:a></text:p>
1560+<text:p text:style-name="Text_20_body">Auto-links should not occur here:
1561+<text:span text:style-name="Teletype">&lt;http://example.com/&gt;</text:span></text:p>
14311562<text:p text:style-name="P57">or here: &lt;http://example.com/&gt;</text:p>
14321563<text:p text:style-name="Horizontal_20_Line" />
14331564<text:h text:style-name="Heading_20_1" text:outline-level="1">Images</text:h>
1434−<text:p text:style-name="Text_20_body">From &#8220;Voyage dans la Lune&#8221; by Georges Melies (1902):</text:p>
1565+<text:p text:style-name="Text_20_body">From &#8220;Voyage dans la Lune&#8221;
1566+by Georges Melies (1902):</text:p>
14351567<text:p text:style-name="Text_20_body"><draw:frame><draw:image xlink:href="lalune.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame></text:p>
1436−<text:p text:style-name="Text_20_body">Here is a movie <draw:frame><draw:image xlink:href="movie.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame> icon.</text:p>
1568+<text:p text:style-name="Text_20_body">Here is a movie
1569+<draw:frame><draw:image xlink:href="movie.jpg" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad" /></draw:frame>
1570+icon.</text:p>
14371571<text:p text:style-name="Horizontal_20_Line" />
14381572<text:h text:style-name="Heading_20_1" text:outline-level="1">Footnotes</text:h>
1439−<text:p text:style-name="Text_20_body">Here is a footnote reference,<text:note text:id="ftn0" text:note-class="footnote"><text:note-citation>1</text:note-citation><text:note-body><text:p text:style-name="Footnote">Here is the footnote. It can go anywhere after the footnote reference. It need not be placed at the end of the document.</text:p></text:note-body></text:note> and another.<text:note text:id="ftn1" text:note-class="footnote"><text:note-citation>2</text:note-citation><text:note-body><text:p text:style-name="Footnote">Here&#8217;s the long note. This one contains multiple blocks.</text:p><text:p text:style-name="Footnote">Subsequent blocks are indented to show that they belong to the footnote (as with list items).</text:p><text:p text:style-name="P58"><text:s text:c="2" />{ &lt;code&gt; }</text:p><text:p text:style-name="Footnote">If you want, you can indent every line, but you can also be lazy and just indent the first line of each block.</text:p></text:note-body></text:note> This should <text:span text:style-name="T71">not</text:span> be a footnote reference, because it contains a space.[^my note] Here is an inline note.<text:note text:id="ftn2" text:note-class="footnote"><text:note-citation>3</text:note-citation><text:note-body><text:p text:style-name="Footnote">This is <text:span text:style-name="T72">easier</text:span> to type. Inline notes may contain <text:a xlink:type="simple" xlink:href="http://google.com" office:name=""><text:span text:style-name="Definition">links</text:span></text:a> and <text:span text:style-name="Teletype">]</text:span> verbatim characters, as well as [bracketed text].</text:p></text:note-body></text:note></text:p>
1440−<text:p text:style-name="P59">Notes can go in quotes.<text:note text:id="ftn3" text:note-class="footnote"><text:note-citation>4</text:note-citation><text:note-body><text:p text:style-name="Footnote">In quote.</text:p></text:note-body></text:note></text:p>
1573+<text:p text:style-name="Text_20_body">Here is a footnote
1574+reference,<text:note text:id="ftn0" text:note-class="footnote"><text:note-citation>1</text:note-citation><text:note-body><text:p text:style-name="Footnote">Here
1575+is the footnote. It can go anywhere after the footnote reference. It need not
1576+be placed at the end of the document.</text:p></text:note-body></text:note>
1577+and
1578+another.<text:note text:id="ftn1" text:note-class="footnote"><text:note-citation>2</text:note-citation><text:note-body><text:p text:style-name="Footnote">Here&#8217;s
1579+the long note. This one contains multiple
1580+blocks.</text:p><text:p text:style-name="Footnote">Subsequent blocks are
1581+indented to show that they belong to the footnote (as with list
1582+items).</text:p><text:p text:style-name="P58"><text:s text:c="2" />{ &lt;code&gt; }</text:p><text:p text:style-name="Footnote">If
1583+you want, you can indent every line, but you can also be lazy and just indent
1584+the first line of each block.</text:p></text:note-body></text:note> This
1585+should <text:span text:style-name="T71">not</text:span> be a footnote
1586+reference, because it contains a space.[^my note] Here is an inline
1587+note.<text:note text:id="ftn2" text:note-class="footnote"><text:note-citation>3</text:note-citation><text:note-body><text:p text:style-name="Footnote">This
1588+is <text:span text:style-name="T72">easier</text:span> to type. Inline notes
1589+may contain
1590+<text:a xlink:type="simple" xlink:href="http://google.com" office:name=""><text:span text:style-name="Definition">links</text:span></text:a>
1591+and <text:span text:style-name="Teletype">]</text:span> verbatim characters,
1592+as well as [bracketed text].</text:p></text:note-body></text:note></text:p>
1593+<text:p text:style-name="P59">Notes can go in
1594+quotes.<text:note text:id="ftn3" text:note-class="footnote"><text:note-citation>4</text:note-citation><text:note-body><text:p text:style-name="Footnote">In
1595+quote.</text:p></text:note-body></text:note></text:p>
14411596<text:list text:style-name="L30">
14421597 <text:list-item>
1443− <text:p text:style-name="P60">And in list items.<text:note text:id="ftn4" text:note-class="footnote"><text:note-citation>5</text:note-citation><text:note-body><text:p text:style-name="Footnote">In list.</text:p></text:note-body></text:note></text:p>
1598+ <text:p text:style-name="P60">And in list
1599+ items.<text:note text:id="ftn4" text:note-class="footnote"><text:note-citation>5</text:note-citation><text:note-body><text:p text:style-name="Footnote">In
1600+ list.</text:p></text:note-body></text:note></text:p>
14441601 </text:list-item>
14451602</text:list>
1446−<text:p text:style-name="Text_20_body">This paragraph should not be part of the note, as it is not indented.</text:p>
1603+<text:p text:style-name="Text_20_body">This paragraph should not be part of
1604+the note, as it is not indented.</text:p>
14471605</office:text>
14481606</office:body>
14491607</office:document-content>