[gnome-web-wppo] manually replace all the self-contained tags generated by ITS Tool



commit b2c27f76a1419ce763bd225f9e7df61c08a14210
Author: Vinicius Depizzol <vdepizzol gmail com>
Date:   Thu Mar 15 20:40:28 2012 -0300

    manually replace all the self-contained tags generated by ITS Tool

 backend.php |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/backend.php b/backend.php
index 54807bc..93d4605 100644
--- a/backend.php
+++ b/backend.php
@@ -322,6 +322,16 @@ function wppo_check_for_po_changes($force = false, $coverage = array('dynamic',
                                         
                                         // Find all the links and convert to current language
                                         $node[$column] = wppo_recreate_links_in_html($node[$column], $lang);
+                                        
+                                        /*
+                                         * Due to bug #47380 in ITS Tool we have to manually replace
+                                         * all the self-contained tags to make sure browsers will render
+                                         * the HTML just fine.
+                                         *
+                                         * https://bugs.freedesktop.org/show_bug.cgi?id=47380
+                                         */
+                                         
+                                         $node[$column] = preg_replace("/<([a-z]+)([^>]*)\/>/i", "<$1$2></$1>", $node[$column]);
                                     }
                                     
                                 break;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]