Replace self-closing divs with open/close divs
authorBill Erickson <berick@esilibrary.com>
Tue, 27 Sep 2011 14:51:29 +0000 (10:51 -0400)
committerDan Scott <dscott@laurentian.ca>
Thu, 13 Oct 2011 13:39:56 +0000 (09:39 -0400)
XML != HTML

Traditionally, Vandelay templates were parsed as XML on the server for
DTD replacement.  With the advent of locale::maketext for templates,
Vandelay no longer needs to be parsed as XML.  However, not parsing as
XML leaves any self-closing divs (<div/>) intact in the final source,
which are treated as opening divs in text/html.  This patch replaces
self-closing divs with open/close pairs.

https://bugs.launchpad.net/evergreen/+bug/860676

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/conify/global/config/hold_matrix_matchpoint.tt2
Open-ILS/src/templates/vandelay/inc/attrs.tt2
Open-ILS/src/templates/vandelay/inc/queue.tt2

index f1efcbc..0823484 100644 (file)
@@ -17,7 +17,7 @@
             showColumnPicker='true'
             columnPickerPrefix='"conify.config.hold_matrix_matchpoint"'>
     </table>
-    <div/>
+    <div></div>
 </div>
 
 <script type="text/javascript">
index 8368548..3e456e5 100644 (file)
@@ -86,7 +86,7 @@
             </tr>
         </thead>
     </table>
-    <div/>
+    <div></div>
 </div>
 
 
index 0f24b8c..3abf678 100644 (file)
             </tr>
         </thead>
     </table>
-    <div/>
+    <div></div>
 </div>
 
 <!-- Auth Queue Grid -->
             </tr>
         </thead>
     </table>
-    <div/>
+    <div></div>
 </div>
 
 <div jsId='queueItemsImportDialog' dojoType="dijit.Dialog" title="Import Items">