From dec888641006eb685a642ec489b198c61a5736dc Mon Sep 17 00:00:00 2001
From: Alina Banerjee <alinab@users.noreply.github.com>
Date: Thu, 1 Aug 2019 16:01:39 -0500
Subject: Update parsing to strip whitespace from table cells (#1074)

* Update parsing to strip leading & trailing whitespace from table cells

* Update fixture data to disallow whitespaces at both ends in table cells

* Add test case for whitespaces stripped from both ends of table cells

* Update table reference test data for html tests
---
 html-test/ref/Table.html | 96 ++++++++++++++++++++++++------------------------
 1 file changed, 48 insertions(+), 48 deletions(-)

(limited to 'html-test')

diff --git a/html-test/ref/Table.html b/html-test/ref/Table.html
index 8a299018..26b0254d 100644
--- a/html-test/ref/Table.html
+++ b/html-test/ref/Table.html
@@ -87,33 +87,33 @@
 	    ><thead
 	      ><tr
 		><th
-		  > code </th
+		  >code</th
 		  ><th
-		  > message      </th
+		  >message</th
 		  ><th
-		  > description                              </th
+		  >description</th
 		  ></tr
 		></thead
 	      ><tbody
 	      ><tr
 		><td
-		  > 200  </td
+		  >200</td
 		  ><td
-		  >   <code
+		  ><code
 		    >OK</code
-		    >       </td
+		    ></td
 		  ><td
-		  > operation successful                     </td
+		  >operation successful</td
 		  ></tr
 		><tr
 		><td
-		  > 204  </td
+		  >204</td
 		  ><td
-		  > <code
+		  ><code
 		    >No Content</code
-		    > </td
+		    ></td
 		  ><td
-		  > operation successful, no body returned   </td
+		  >operation successful, no body returned</td
 		  ></tr
 		></tbody
 	      ></table
@@ -133,33 +133,33 @@
 	    ><tbody
 	      ><tr
 		><td
-		  > 200  </td
+		  >200</td
 		  ><td
-		  >   <code
+		  ><code
 		    >OK</code
-		    >       </td
+		    ></td
 		  ><td
-		  > operation successful                     </td
+		  >operation successful</td
 		  ></tr
 		><tr
 		><td
-		  > 204  </td
+		  >204</td
 		  ><td
-		  > <code
+		  ><code
 		    >No Content</code
-		    > </td
+		    ></td
 		  ><td
-		  > operation successful, no body returned   </td
+		  >operation successful, no body returned</td
 		  ></tr
 		><tr
 		><td
-		  > 404  </td
+		  >404</td
 		  ><td
-		  > <code
+		  ><code
 		    >Not Found</code
-		    >  </td
+		    ></td
 		  ><td
-		  > resource not found                       </td
+		  >resource not found</td
 		  ></tr
 		></tbody
 	      ></table
@@ -179,57 +179,57 @@
 	    ><thead
 	      ><tr
 		><th
-		  > Header row, column 1   
- (header rows optional) </th
+		  >Header row, column 1
+(header rows optional)</th
 		  ><th
-		  > Header 2   
-            </th
+		  >Header 2
+</th
 		  ><th
-		  > Header 3 
-          </th
+		  >Header 3
+</th
 		  ><th
-		  > Header 4 
-          </th
+		  >Header 4
+</th
 		  ></tr
 		></thead
 	      ><tbody
 	      ><tr
 		><td
-		  > body row 1, column 1   </td
+		  >body row 1, column 1</td
 		  ><td
-		  > column 2   </td
+		  >column 2</td
 		  ><td
-		  > column 3 </td
+		  >column 3</td
 		  ><td
-		  > column 4 </td
+		  >column 4</td
 		  ></tr
 		><tr
 		><td
-		  > <code
+		  ><code
 		    ><a href="#" title="Table"
 		      >tableWithHeader</a
 		      ></code
-		    >      </td
+		    ></td
 		  ><td colspan="3"
-		  > Cells may span columns.          </td
+		  >Cells may span columns.</td
 		  ></tr
 		><tr
 		><td
-		  > body row 3             </td
+		  >body row 3</td
 		  ><td rowspan="2"
-		  > Cells may  
- span rows. 
-            </td
+		  >Cells may
+span rows.
+</td
 		  ><td colspan="2" rowspan="2"
-		  > <span class="mathjax"
-		    >\[                  
- f(n) = \sum_{i=1}   
- \]</span
-		    >                  </td
+		  ><span class="mathjax"
+		    >\[
+f(n) = \sum_{i=1}
+\]</span
+		    ></td
 		  ></tr
 		><tr
 		><td
-		  > body row 4             </td
+		  >body row 4</td
 		  ></tr
 		></tbody
 	      ></table
-- 
cgit v1.2.3