summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Marquardt <github@marquardt-home.de>2007-01-27 14:14:30 +0000
committercmarqu <cmarqu@users.sourceforge.net>2007-01-27 14:14:30 +0000
commit7f04ccda665d0014b438bcc3aa7451626c58901e (patch)
treefbcb8f05692f5e02d50509cc6aa169f8fe934d0a
parentuse bare layer names for layer names in gimp rather than file paths (diff)
downloadinkscape-7f04ccda665d0014b438bcc3aa7451626c58901e.tar.gz
inkscape-7f04ccda665d0014b438bcc3aa7451626c58901e.zip
Add check for well-formedness of entity declarations. We found a
translation where these were wrong, and only GTK spotted this. (bzr r2295)
-rwxr-xr-xpo/check-markup5
1 files changed, 5 insertions, 0 deletions
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 '&#123;')");
+ 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");