[gedit-latex] Prevent crash of bibtex parser on quoted strings.
- From: Jose Aliste <jaliste src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit-latex] Prevent crash of bibtex parser on quoted strings.
- Date: Wed, 19 Oct 2011 00:09:18 +0000 (UTC)
commit 0d754805a499c8904be1febdc224711b99d37f71
Author: Sven (Sbte) <svenb linux gmail com>
Date: Tue Oct 18 20:16:53 2011 +0200
Prevent crash of bibtex parser on quoted strings.
The callbacks are called with four parameters, not two.
See https://bugzilla.gnome.org/show_bug.cgi?id=662127
latex/bibtex/parser.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/latex/bibtex/parser.py b/latex/bibtex/parser.py
index 35da9a8..251a64a 100644
--- a/latex/bibtex/parser.py
+++ b/latex/bibtex/parser.py
@@ -261,7 +261,7 @@ class BibTeXParser(object):
if token.type == Token.QUOTE:
self._state = self._QUOTED_STRING_VALUE
- def _on_quoted_string_value(self, token):
+ def _on_quoted_string_value(self, token, file, issue_handler):
if token.type == Token.TEXT:
self._constant.value = token.value
self._document.constants.append(self._constant)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]