~ubuntu-branches/debian/experimental/inkscape/experimental

« back to all changes in this revision

Viewing changes to po/check-markup

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-09-09 23:29:02 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080909232902-c50iujhk1w79u8e7
Tags: 0.46-2.1
* Non-maintainer upload.
* Add upstream patch fixing a crash in the open dialog
  in the zh_CN.utf8 locale. Closes: #487623.
  Thanks to Luca Bruno for the patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        }
67
67
    }
68
68
 
 
69
    if (($str =~ m{&#[^0-9]+;}) or ($str =~ m{&#x[^0-9a-fA-F]+;})) {
 
70
        po_error("Entity declaration error (must look like '{' or '@' and be in ASCII)");
 
71
        return 0;
 
72
    }
 
73
 
 
74
    if (($str =~ m{&#[^0-9]+}) or ($str =~ m{&#x[^0-9a-fA-F]+})) {
 
75
        po_error("Entity declaration error 2 (must look like '{' or '@' and be in ASCII)");
 
76
        return 0;
 
77
    }
 
78
 
 
79
    if (($str =~ m{&#(?![0-9]{2,4};)}) or ($str =~ m{&#x(?![0-9a-fA-F]{2,4};)})) {
 
80
        po_error("Entity declaration error 3 (must look like '{' or '@' and be in ASCII)");
 
81
        return 0;
 
82
    }
 
83
 
69
84
    # Check for attributes etc. in non-<span> element.
70
85
    if ($str =~ m{<([bisu]|big|su[bp]|small|tt)\b(?! *)>}) {
71
86
        po_error("Unexpected characters in <$1> tag");