From: cmarqu Date: Sat, 27 Jan 2007 14:14:30 +0000 (+0000) Subject: Add check for well-formedness of entity declarations. We found a X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75a68d6ceb269d78054ba138a5d8fd6b5a37c9b8;p=inkscape.git Add check for well-formedness of entity declarations. We found a translation where these were wrong, and only GTK spotted this. --- diff --git a/po/check-markup b/po/check-markup index 6450e1fe3..61bee8d42 100755 --- a/po/check-markup +++ b/po/check-markup @@ -66,6 +66,11 @@ sub check_str ($) { } } + if ($str =~ m{&#[^0-9]+;}) { + po_error("Entity declaration error (must look like '{')"); + return 0; + } + # Check for attributes etc. in non- element. if ($str =~ m{<([bisu]|big|su[bp]|small|tt)\b(?! *)>}) { po_error("Unexpected characters in <$1> tag");