← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7979: Updated clean cde script

 

------------------------------------------------------------
revno: 7979
committer: Lars Helge Øverland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-08-29 10:49:10 +0200
message:
  Updated clean cde script
modified:
  resources/util/clean_cde.sh


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'resources/util/clean_cde.sh'
--- resources/util/clean_cde.sh	2012-08-20 12:02:38 +0000
+++ resources/util/clean_cde.sh	2012-08-29 08:49:10 +0000
@@ -33,13 +33,19 @@
 sed -i 's/<small[^>]*>//g' $1
 sed -i 's/<\/small>//g' $1
 
+# Remove font open/end tags
+
+sed -i 's/<font[^>]*>//g' $1
+sed -i 's/<\/font>//g' $1
+
 # Remove all style, width, nowrap, valign, view attributes
 
 sed -i 's/style="[^"]*"//g' $1
 sed -i 's/width="[^"]*"//g' $1
 sed -i 's/nowrap="[^"]*"//g' $1
 sed -i 's/valign="[^"]*"//g' $1
-sed -i 's/view="[^"]*"//g' $1
+sed -i 's/view="[^"]*"//g' $11
+sed -i 's/bgcolor="[^"]*"//g' $1
 
 # Remove weird stuff