Browse Source

MMO-12935:策划表格xml格式清理

wangyh 4 years ago
parent
commit
0044a0af06
1 changed files with 2 additions and 0 deletions
  1. 2 0
      format_xml.sh

+ 2 - 0
format_xml.sh

@@ -9,6 +9,7 @@ git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
     -e '/^ *<\(Last\)*Author>/d' \
     -e '/^ *<TopRowVisible/d' \
     -e '/^ *<LastSaved/d' \
+    -e '/^ *<FirstVisibleSheet/d' \
     -e '/^ *<LeftColumnVisible/d' \
     -e '/<Panes>/,/<\/Panes>/d' \
     -e '/<Table */,/>/s/ ss:StyleID="\w\+"//' \
@@ -36,4 +37,5 @@ do
 done
 
 git diff  --name-only  HEAD 策划脚本| grep '\.xml$'|xargs sed -b -i \
+    -e 's/ x:Family="[^"]*"//g' \
     -e '/^ *<Cell[ >].*<\/Cell>/s/ ss:StyleID="\w\+"//g'