Fix ListPlain

This commit is contained in:
Carol (Nichols || Goulding) 2022-09-13 11:00:52 -04:00 committed by Carol (Nichols || Goulding)
parent 365f11bfb8
commit 03cd731b27
2 changed files with 11 additions and 14 deletions

View File

@ -208,19 +208,16 @@ A `Message` enum whose variants each store different amounts and types of values
This enum has four variants with different types:
* `Quit` has no data associated with it at all.
* `Move` has named fields, like a struct does.
* `Write` includes a single `String`.
* `ChangeColor` includes three `i32` values.
Unmatched: ListPlain
Unmatched: ListPlain
Unmatched: ListPlain
Unmatched: ListPlain
Defining an enum with variants such as the ones in Listing 6-2 is similar
to defining different kinds of struct definitions, except the enum doesnt use
the `struct` keyword and all the variants are grouped together under the
`Message` type. The following structs could hold the same data that the
preceding enum variants hold:
Defining an enum with variants such as the ones in Listing 6-2 is similar to
defining different kinds of struct definitions, except the enum doesnt use the
`struct` keyword and all the variants are grouped together under the `Message`
type. The following structs could hold the same data that the preceding enum
variants hold:
```
struct QuitMessage; // unit struct

View File

@ -89,11 +89,11 @@
<xsl:text>&#10;&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'BulletA' or @w:val = 'BulletB' or @w:val = 'ListPlainA' or @w:val = 'ListPlainB' or @w:val = 'ListBullet']]">
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'BulletA' or @w:val = 'BulletB' or @w:val = 'ListPlainA' or @w:val = 'ListPlainB' or @w:val = 'ListBullet' or @w:val = 'ListPlain']]">
<xsl:text>* </xsl:text>
<xsl:apply-templates select="*" />
<xsl:text>&#10;</xsl:text>
<xsl:if test="not(following-sibling::*[1][self::w:p]) or following-sibling::w:p[1][w:pPr/w:pStyle[@w:val != 'BulletA' and @w:val != 'BulletB' and @w:val != 'ListPlainA' and @w:val != 'ListPlainB' and @w:val != 'ListBullet']]">
<xsl:if test="not(following-sibling::*[1][self::w:p]) or following-sibling::w:p[1][w:pPr/w:pStyle[@w:val != 'BulletA' and @w:val != 'BulletB' and @w:val != 'ListPlainA' and @w:val != 'ListPlainB' and @w:val != 'ListBullet' and @w:val != 'ListPlain']]">
<xsl:text>&#10;</xsl:text>
</xsl:if>
</xsl:template>