mirror of https://github.com/CGAL/cgal
Protected angle brackets (<,>) in description.txt files when
they are converted to html.
This commit is contained in:
parent
3cfc658768
commit
ab0fc6fa80
|
|
@ -261,6 +261,13 @@ sub check_package($)
|
|||
if ($word_count > 50) {
|
||||
log_msg "WARNING: File description.txt contains more than 50 words!";
|
||||
}
|
||||
my $rc;
|
||||
$rc = system("sed -e 's/</\\</g' -e 's/>/\\>/g' < description.txt > descr");
|
||||
if ($rc == 0) {
|
||||
rename 'descr', 'description.txt';
|
||||
} else {
|
||||
unlink 'descr';
|
||||
}
|
||||
}
|
||||
# if ( ! -f 'changes.txt' ) {
|
||||
# log_msg "WARNING: File changes.txt is missing!";
|
||||
|
|
|
|||
Loading…
Reference in New Issue