aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/whatis2sqlite.pl5
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/whatis2sqlite.pl b/bin/whatis2sqlite.pl
index b557754..b91f98d 100755
--- a/bin/whatis2sqlite.pl
+++ b/bin/whatis2sqlite.pl
@@ -76,9 +76,8 @@ sub make_sql {
return if $seen{"$page^^$sect"}++;
- # N.B. we don't escape quotes here because 14.2's whatis
- # doesn't contain any double-quotes. When 15 is released,
- # better check again!
+ # 15.0 has double-quotes in some descriptions.
+ $desc =~ s/"/""/g;
print <<EOF
insert into whatis values (null, "$page", "$sect", "$desc");
EOF