URL:
<http://gna.org/bugs/?12349>
Summary: double quotes within strings not working
Project: Battle for Wesnoth
Submitted by: opensourcejunkie
Submitted on: Wednesday 09/24/2008 at 08:56
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: WML
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 1.4.4
Operating System: Kubuntu Linux
_______________________________________________________
Details:
I'm posting a bug in response to the following forum thread:
http://www.wesnoth.org/forum/viewtopic.php?f=21&t=22144&start=0&st=0&sk=t&sd=a
I started the thread because I was unable to generate double quote marks
within quoted strings. The Wiki <http://www.wesnoth.org/wiki/SyntaxWML>
seemed to suggest that the proper method for generating such quotes involved
placing two double quote marks next to each-other.
Example: "this is a ""quoted"" string"
This method has worked for me in times past, so I was surprised to see that
it stopped working. The reason for this cessation may be due to the fact
that I upgraded from 1.4.3 to 1.4.4 during my WML development. It also could
be caused by the WML itself, although no one on the forum has yet found any
fault in my WML.
An alternate method was posted - a method which worked, but was seemingly
undocumented on the wiki. The method involved using single quotes around a
double quote, as the following example exemplifies:
Example: "this is a '"'quoted'"' string"
If the second method is, in fact, the correct method, then the documentation
on the wiki simply needs to be updated/clarified (I can do that myself if
need be). If, however, the first method is the correct method, then I
imagine a bugfix is in order :)
I don't, unfortunately, have a savefile handy that I can give to help
reproduce the error. I do, however, have a zipfile of my campaign attached
which can reproduce the error. To reach the error, install the campaign
under your userdata directory, run wesnoth, click the campaign button, and
select "Sceptre of Life" on medium difficulty.
The campaign is set to take you immediately to the fifth scenario. Skip
through all the intro dialogue, and let the ai players duke it out until turn
2. At the beginning of the turn, dialogue will start again. When Burin the
Innovator first speaks, his dialogue box should read as the following:
"(nudges Elrial): 'Aven't ye learned that this boy's too "spunky" fer 'is own
good?"
Unfortunately, the word "spunky" doesn't display its quotes, and therein lies
the problem.
Happy hunting, and let me know if you need any other information!
--OSJ
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?12349>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs