return;
}
- while (walker->next != NULL) {
+ if (walker->next == NULL) {
+ // Single item list
if (walker->type == BLOCK_LIST_ITEM) {
if (walker->child->type == BLOCK_PARA) {
- loose = true;
+ walker = walker->child;
+
+ while (walker->next != NULL) {
+ if (walker->type == BLOCK_EMPTY) {
+ if (walker->next->type == BLOCK_PARA) {
+ loose = true;
+ }
+ }
+
+ walker = walker->next;
+ }
} else {
walker->type = BLOCK_LIST_ITEM_TIGHT;
}
}
+ } else {
+ while (walker->next != NULL) {
+ if (walker->type == BLOCK_LIST_ITEM) {
+ if (walker->child->type == BLOCK_PARA) {
+ loose = true;
+ } else {
+ walker->type = BLOCK_LIST_ITEM_TIGHT;
+ }
+ }
- walker = walker->next;
+ walker = walker->next;
+ }
}
if (loose) {
</text:list>
<text:p text:style-name="Standard">15</text:p>
+
+<text:list text:style-name="L1">
+<text:list-item>
+<text:p text:style-name="Standard">foo</text:p>
+
+<text:p text:style-name="Standard">bar</text:p></text:list-item>
+
+</text:list>
+
+<text:p text:style-name="Standard">bar</text:p>
+
+<text:list text:style-name="L2">
+<text:list-item>
+<text:p text:style-name="Standard">foo</text:p>
+
+<text:p text:style-name="Standard">bar</text:p></text:list-item>
+
+</text:list>
+
+<text:p text:style-name="Standard">bar</text:p>
+
+<text:list text:style-name="L1">
+<text:list-item>
+<text:p text:style-name="Standard">foo</text:p></text:list-item>
+
+</text:list>
+
+<text:p text:style-name="Standard">bar</text:p>
+
+<text:list text:style-name="L2">
+<text:list-item>
+<text:p text:style-name="Standard">foo</text:p></text:list-item>
+
+</text:list>
+
+<text:p text:style-name="Standard">bar</text:p>
</office:text>
</office:body>
</office:document>
<p>15</p>
+<ul>
+<li><p>foo</p>
+
+<p>bar</p></li>
+</ul>
+
+<p>bar</p>
+
+<ol>
+<li><p>foo</p>
+
+<p>bar</p></li>
+</ol>
+
+<p>bar</p>
+
+<ul>
+<li>foo</li>
+</ul>
+
+<p>bar</p>
+
+<ol>
+<li>foo</li>
+</ol>
+
+<p>bar</p>
+
</body>
</html>
</ul>
<p>15</p>
+
+<ul>
+<li><p>foo</p>
+
+<p>bar</p></li>
+</ul>
+
+<p>bar</p>
+
+<ol>
+<li><p>foo</p>
+
+<p>bar</p></li>
+</ol>
+
+<p>bar</p>
+
+<ul>
+<li>foo</li>
+</ul>
+
+<p>bar</p>
+
+<ol>
+<li>foo</li>
+</ol>
+
+<p>bar</p>
\ No newline at end of file
<opml version="1.0">
<head><title>Basic Lists</title></head>
<body>
-<outline text=">>Preamble<<" _note=" * foo * foo * foo bar * foo * foo * foo bar * foo * foo *		foo 5 1. foo 2. foo 3.	foo bar 1. foo 2. foo 3. foo bar 1. foo 2. foo 3. foo 10 + foo + foo + foo bar - foo - foo - foo bar * foo 	bar * foo 	bar * foo 	bar 15 "></outline>
+<outline text=">>Preamble<<" _note=" * foo * foo * foo bar * foo * foo * foo bar * foo * foo *		foo 5 1. foo 2. foo 3.	foo bar 1. foo 2. foo 3. foo bar 1. foo 2. foo 3. foo 10 + foo + foo + foo bar - foo - foo - foo bar * foo 	bar * foo 	bar * foo 	bar 15 * foo 	bar bar 1. foo 	bar bar * foo bar 1. foo bar "></outline>
<outline text=">>Metadata<<">
<outline text="title" _note="Basic Lists"/>
<outline text="latexconfig" _note="article"/>
15
+\begin{itemize}
+\item foo
+
+bar
+
+\end{itemize}
+
+bar
+
+\begin{enumerate}
+\item foo
+
+bar
+
+\end{enumerate}
+
+bar
+
+\begin{itemize}
+\item foo
+
+\end{itemize}
+
+bar
+
+\begin{enumerate}
+\item foo
+
+\end{enumerate}
+
+bar
+
\input{mmd6-article-footer}
\end{document}
bar
15
+
+* foo
+
+ bar
+
+bar
+
+1. foo
+
+ bar
+
+bar
+
+* foo
+
+bar
+
+1. foo
+
+bar