Rev 6858 | Rev 8545 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6858 | Rev 8482 | ||
---|---|---|---|
Line 21... | Line 21... | ||
21 | ## transform some hr |
21 | ## transform some hr |
22 | $text =~ s|<hr\s+width="(\d+)%"\s*/?/>|<hr style="width:$1%"/>|g; |
22 | $text =~ s|<hr\s+width="(\d+)%"\s*/?/>|<hr style="width:$1%"/>|g; |
23 | ## delete <br/> before table ? |
23 | ## delete <br/> before table ? |
24 | $text =~ s|<br ?/></table>|</table>|g; |
24 | $text =~ s|<br ?/></table>|</table>|g; |
25 | ## delete multiple <br> |
25 | ## delete multiple <br> |
26 | $text =~ s:(<br ?/>\s*)+:<br/> |
26 | $text =~ s:(<br ?/>\s*)+:<br/>:g; |
27 | $text =~ s:</div>\s+</div>:</div>\n</div>:g; |
27 | $text =~ s:</div>\s+</div>:</div>\n</div>:g; |
28 | $text =~ s:</div>\s*<br/>\s*</div>:</div>\n</div>:g; |
28 | $text =~ s:</div>\s*<br/>\s*</div>:</div>\n</div>:g; |
29 | close(IN); |
29 | close(IN); |
30 | 30 | ||
31 | open (OUT, ">$file"); |
31 | open (OUT, ">$file"); |