Code

Add check for well-formedness of entity declarations. We found a
[inkscape.git] / po / check-markup
index 6450e1fe31f827805f8ec403c93195482df12894..61bee8d42b85e997b9250d62917d6b723a007cb7 100755 (executable)
@@ -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-<span> element.
     if ($str =~ m{<([bisu]|big|su[bp]|small|tt)\b(?! *)>}) {
        po_error("Unexpected characters in <$1> tag");