]> granicus.if.org Git - docbook-dsssl/commitdiff
test for whether whitespace is getting trimmed properly in table cells
authorAdam Di Carlo <adicarlo@users.sourceforge.net>
Fri, 14 Feb 2003 16:20:14 +0000 (16:20 +0000)
committerAdam Di Carlo <adicarlo@users.sourceforge.net>
Fri, 14 Feb 2003 16:20:14 +0000 (16:20 +0000)
and itemizedlist listitems; the table cell case shows a bug in DSSSL

testdocs/tests/itemizedlist.004.xml [new file with mode: 0644]
testdocs/tests/table.011.xml [new file with mode: 0644]

diff --git a/testdocs/tests/itemizedlist.004.xml b/testdocs/tests/itemizedlist.004.xml
new file mode 100644 (file)
index 0000000..9929bb5
--- /dev/null
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article>
+<articleinfo>
+<title>Unit Test: itemizedlist.001</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Adam</firstname> <surname>Di Carlo</surname>
+        <affiliation><address><email>adam@onshored.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+<itemizedlist>
+<listitem><para>This is the first one.</para></listitem>
+<listitem><para>
+        This second item should be flush left with first one (trim
+        whitespace).</para>
+</listitem>
+</itemizedlist>
+
+</article>
diff --git a/testdocs/tests/table.011.xml b/testdocs/tests/table.011.xml
new file mode 100644 (file)
index 0000000..7de2ffe
--- /dev/null
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
+                  "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<article id="table.011">
+<articleinfo>
+<title>Unit Test: table.011</title>
+<releaseinfo role="CVS">$Id$</releaseinfo>
+<author><firstname>Adam</firstname> <surname>Di Carlo</surname>
+        <affiliation><address><email>adam@onshored.com</email></address></affiliation>
+</author>
+</articleinfo>
+
+  <para>
+Simple cell spacing test.  The following single-column table should
+show both cell contents starting at the same place.</para>
+
+  <para>Yes.</para>
+
+  <informaltable frame="all">
+    <tgroup cols="1">
+      <tbody>
+        <row>
+          <entry>First entry.</entry>
+        </row>
+        <row>
+          <entry>
+Second entry.</entry>
+        </row>
+      </tbody>
+    </tgroup>
+  </informaltable>
+</article>