[gedit-latex/gnome-3-2] Prevent crash of bibtex parser on quoted strings.



commit 0ea4efe23888d485d0a0b3931dbd7ef2985d6811
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]