mirror of https://github.com/django/django.git
Fixed use of "_" in RelaxNGCompact validator which was conflicting with gettext tag
git-svn-id: http://code.djangoproject.com/svn/django/trunk@1340 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6c127e3883
commit
b6ddc9d3c1
|
@ -457,7 +457,7 @@ class RelaxNGCompact:
|
||||||
display_errors = []
|
display_errors = []
|
||||||
lines = field_data.split('\n')
|
lines = field_data.split('\n')
|
||||||
for error in errors:
|
for error in errors:
|
||||||
_, line, level, message = error.split(':', 3)
|
ignored, line, level, message = error.split(':', 3)
|
||||||
# Scrape the Jing error messages to reword them more nicely.
|
# Scrape the Jing error messages to reword them more nicely.
|
||||||
m = re.search(r'Expected "(.*?)" to terminate element starting on line (\d+)', message)
|
m = re.search(r'Expected "(.*?)" to terminate element starting on line (\d+)', message)
|
||||||
if m:
|
if m:
|
||||||
|
|
Loading…
Reference in New Issue