From 75a68d6ceb269d78054ba138a5d8fd6b5a37c9b8 Mon Sep 17 00:00:00 2001 From: cmarqu Date: Sat, 27 Jan 2007 14:14:30 +0000 Subject: [PATCH] Add check for well-formedness of entity declarations. We found a translation where these were wrong, and only GTK spotted this. --- po/check-markup | 5 +++++ 1 file changed, 5 insertions(+) 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"); -- 2.30.2