Trying to fix the evil sed thing by matching the attibutes to body
We lose the onLoad argument to <body> if we don't match, and backreference it.
This commit is contained in:
		
							parent
							
								
									ddbdac895e
								
							
						
					
					
						commit
						a9b12101dc
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -2,7 +2,7 @@ | ||||||
| PAGE=$1 | PAGE=$1 | ||||||
| ROOT=$2 | ROOT=$2 | ||||||
| 
 | 
 | ||||||
| sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.gnome.org/default.css\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"$ROOT/foundation.css\" /><link rel=\"icon\" type=\"image/png\" href=\"http://www.gnome.org/img/logo/foot-16.png\" />,i;s,<body[^>]*>,<body><div id=\"body\">,i;/<\/body>/,//d" $PAGE | sed "s,<head>,<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.gnome.org/default.css\" /><link rel=\"stylesheet\" type=\"text/css\" href=\"$ROOT/foundation.css\" /><link rel=\"icon\" type=\"image/png\" href=\"http://www.gnome.org/img/logo/foot-16.png\" />,i;s,<body\([^>]*\)>,<body\1><div id=\"body\">,i;/<\/body>/,//d" $PAGE | ||||||
| 
 | 
 | ||||||
| cat <<-FOOT | cat <<-FOOT | ||||||
| </div> | </div> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Tobias Mueller
						Tobias Mueller