diff options
author | Shaun McCance <shaunm@gnome.org> | 2013-11-01 11:53:28 -0400 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2013-11-01 11:53:28 -0400 |
commit | 17a89300affeac556803c23eefefc9f279a82908 (patch) | |
tree | f2b58049530ba4221725a18ab086082a53d44684 | |
parent | 8e4ccd41ad198ebc816a43419c21714bad7dc748 (diff) | |
download | itstool-its-2-0.tar.gz |
docbook*.its: Make info children always not within textits-2-0
Some of the children are marked within text because they should be
when appearing in a para. But letting info appear as if it were a
text run hits some strange corner cases that cause locale filter
not to be applied as you might think it should.
-rw-r--r-- | its/docbook.its | 3 | ||||
-rw-r--r-- | its/docbook5.its | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/its/docbook.its b/its/docbook.its index 94ccd17..ed223d3 100644 --- a/its/docbook.its +++ b/its/docbook.its @@ -194,6 +194,9 @@ <its:withinTextRule withinText="yes" selector="//address[count(*) = 1 and email]"/> <its:preserveSpaceRule space="preserve" selector="//address[not(count(*) = 1 and email)]"/> + <!-- Above all else, info is not a text run --> + <its:withinTextRule withinText="no" selector="//bookinfo/* | //chapterinfo/* | //articleinfo/*"/> + <!-- These are always verbatim --> <its:preserveSpaceRule space="preserve" selector="//classsynopsisinfo"/> <its:preserveSpaceRule space="preserve" selector="//funcsynopsisinfo"/> diff --git a/its/docbook5.its b/its/docbook5.its index a62a45f..a2f0b1d 100644 --- a/its/docbook5.its +++ b/its/docbook5.its @@ -180,6 +180,9 @@ <its:withinTextRule withinText="yes" selector="//db:indexterm//*"/> <its:withinTextRule withinText="yes" selector="//db:simplelist[@type = 'inline']/descendant-or-self::*"/> + <!-- Above all else, info is not a text run --> + <its:withinTextRule withinText="no" selector="//db:info/*"/> + <!-- These are always verbatim --> <its:preserveSpaceRule space="preserve" selector="//db:address"/> <its:preserveSpaceRule space="preserve" selector="//db:classsynopsisinfo"/> |