[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Wesnoth-cvs-commits] wesnoth/src config.cpp
From: |
Yann Dirson |
Subject: |
[Wesnoth-cvs-commits] wesnoth/src config.cpp |
Date: |
Thu, 25 Nov 2004 16:45:46 -0500 |
CVSROOT: /cvsroot/wesnoth
Module name: wesnoth
Branch:
Changes by: Yann Dirson <address@hidden> 04/11/25 21:39:38
Modified files:
src : config.cpp
Log message:
fixed wml parser not to ignore an _ after a +
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/wesnoth/wesnoth/src/config.cpp.diff?tr1=1.115&tr2=1.116&r1=text&r2=text
Patches:
Index: wesnoth/src/config.cpp
diff -u wesnoth/src/config.cpp:1.115 wesnoth/src/config.cpp:1.116
--- wesnoth/src/config.cpp:1.115 Thu Nov 25 19:50:51 2004
+++ wesnoth/src/config.cpp Thu Nov 25 21:39:38 2004
@@ -1,4 +1,4 @@
-/* $Id: config.cpp,v 1.115 2004/11/25 19:50:51 ydirson Exp $ */
+/* $Id: config.cpp,v 1.116 2004/11/25 21:39:38 ydirson Exp $ */
/*
Copyright (C) 2003 by David White <address@hidden>
Part of the Battle for Wesnoth Project http://wesnoth.whitevine.net
@@ -815,6 +815,9 @@
} else if(in_quotes || !has_quotes) {
expecting_value = false;
push_back(value, c);
+ } else if(expecting_value) {
+ // after a +, emulate !has_quotes so we
can see any _ when we encounter a " later
+ push_back(value, c);
}
break;