Commit graph

2320 commits

Author SHA1 Message Date
Ignacio R. Morelle
599504cee3 Exclude data/test from reindent target
wmlindent currently breaks things in there due to data/test containing
multiple triggers for bug #22264.
2015-04-07 21:07:30 -03:00
Elvish_Hunter
20d7d8b53e wmllint: handle variation_name translatable attribute. Fixes bug #23217 2015-04-07 23:30:54 +02:00
Thibault Févry
9382393f74 Merge branch 'master' of https://github.com/wesnoth/wesnoth 2015-03-28 17:15:13 +01:00
Thibault Févry
2f31e98054 Fix terrain2wiki.py for terrain.cfg syntax changes and add a note about terrain2wiki in terrain.cfg 2015-03-28 17:14:34 +01:00
Elias Pschernig
310f8092ad [units.wesnoth.org] update bash script 2015-03-28 16:09:01 +01:00
Elias Pschernig
0e9b76f03c [units.wesnoth.org] Add safeguard for mainline.
If parsing mainline WML failed for whatever reason, there's no point updating the live website copy.
2015-03-22 21:46:22 +01:00
Elias Pschernig
ee047e7ce9 [units.wesnoth.org] Make WML parsing timeout a commandline argument. 2015-03-22 21:38:39 +01:00
Elias Pschernig
4872b1d91b [units.wesnoth.org] Reduced timeout again to avoid out of memory. 2015-03-22 00:56:38 +01:00
Elias Pschernig
2d19275f6f [units.wesnoth.org] Increase addon parsing timeout to 60 seconds. 2015-03-21 17:24:28 +01:00
Groggy Dice
13c9885156 wmltools: refine comma_split function
First: minor change of the argument name passed to the function
from "value" to "csstring", since the string might not be an
attribute value.

Second: more testing pointed out that an empty list would not
meet the "if list:" condition and would not be extended. So
make it explicitly "!= None".

Third: when asking on IRC about trailing whitespace, it was
noted that utils::split also removed empty entries, which
reminded me that I should do that as well.

The biggest change is that the function will now rstrip() by
default, with other options for dealing with trailing
whitespace offered.
2015-03-13 04:36:33 -04:00
Elvish_Hunter
f501b39a2a wml tools GUI: fixed the text box ignoring mouse clicks on Mac OS 2015-02-26 15:04:08 +01:00
Elvish_Hunter
57cde075b8 wml tools GUI: fixed bindings for Entry, Spinbox and Text widgets on Mac OS 2015-02-26 14:58:26 +01:00
Elvish_Hunter
205673d607 wml tools GUI: fixed shortcuts being reported as Ctrl+key instead of Command+key on Mac OS
The actual bindings will be fixed in the next commit.
2015-02-26 14:49:18 +01:00
Groggy Dice
fba024970d wmltools: add function for comma-splitting values 2015-02-24 05:08:15 -05:00
Elvish_Hunter
0b14c1ae50 wml tools GUI: updated copyright notice 2015-02-18 11:27:03 +01:00
Elvish_Hunter
b337e13070 wml tools GUI: exclude the double endline at the end of the file when exporting as text 2015-02-10 11:18:49 +01:00
Elvish_Hunter
63cac8ec70 wml tools GUI: the Ctrl+A accelerator (select all) finally works 2015-02-10 11:14:41 +01:00
Elvish_Hunter
3f3e0ce5f6 wml tools GUI: handle the case in which a user selects the core directory or one of it subdirectories in the add-on selection box 2015-02-10 10:59:02 +01:00
Elvish_Hunter
57d2ece3de wml tools GUI: used os.path.normpath so Windows users see their standard directory separator 2015-02-10 10:50:06 +01:00
Charles Dang
1b8d11460c Remove checks for usage= and border_size= in map files 2015-01-29 14:10:30 +11:00
Charles Dang
b31cd00e25 Removed some now-unnecessary comments 2015-01-29 14:04:17 +11:00
Charles Dang
5ac65f74f5 Revert "Exclude variation_name= from translate mark checks"
This reverts commit 2832fac8c7.
Apparently, this is the wrong way to do this
2015-01-29 13:44:06 +11:00
Charles Dang
2832fac8c7 Exclude variation_name= from translate mark checks 2015-01-29 13:39:00 +11:00
Charles Dang
ce48d18dfb Recognize [background_layer] as a valid child of [part] 2015-01-29 12:52:19 +11:00
Elvish_Hunter
d5a78d19ed GUI.pyw: fixed the 3rd column width in the wmlindent tab 2015-01-23 11:29:14 +01:00
Elvish_Hunter
845d721216 GUI.pyw: fixed wording of an option 2015-01-23 11:17:59 +01:00
Elvish_Hunter
970a739f6d GUI.pyw: reworked verbosity options to fix a bug reported by vultraz 2015-01-23 11:06:06 +01:00
Elvish_Hunter
31bf0159ed GUI.pyw: check if the user already selected a folder, and use it in the directory selection dialog if so 2015-01-23 10:58:16 +01:00
Charles Dang
340e02ed9b wmltools GUI: fixed wording of wmlindent -v -v toggle 2015-01-21 18:12:59 +11:00
Elvish_Hunter
c65c9759d6 GUI.pyw: removed a line that I used while developing the latest modifications 2015-01-20 11:44:13 +01:00
Elvish_Hunter
b39efb97f9 GUI.pyw: added a Clear button to the directory selection box 2015-01-20 11:13:03 +01:00
Elvish_Hunter
2625c02f4d GUI.pyw: use a better error message when Skip core directory is on and there is no directory selected. Also add a missing comment 2015-01-20 11:13:02 +01:00
Elvish_Hunter
04f267e36b GUI.pyw: force Disable checks for unknown units when Skip core directory is enabled 2015-01-20 11:13:02 +01:00
Charles Dang
fce03fae5a wmltools GUI: use utf8 copyright symbol instead of '(C)' in About 2015-01-18 03:43:23 +11:00
Charles Dang
53c2ef9cb7 wmltools GUI: Added option to skip core when running wmllint 2015-01-17 22:32:43 +11:00
Charles Dang
a1f63dcbe3 wmllint: recognize [elseif] as a valid child of [if] 2015-01-17 21:25:38 +11:00
aquileia
79c9219d72 Fix newline recognition in the trackplacer 2015-01-13 03:58:04 +01:00
Elias Pschernig
5a599b935b [units.wesnoth.org] fix race links
Links to a race on unit description pages did not work, only links to the units themselves.
2015-01-10 21:55:49 +01:00
Ignacio R. Morelle
c080ed5b21 addons.w.o: New Year copyright update 2015-01-01 19:07:35 -03:00
Ignacio R. Morelle
9171f86174 website: New Year copyright update 2015-01-01 19:07:35 -03:00
Ignacio R. Morelle
5d82848668 units.w.o: New Year copyright update 2015-01-01 19:07:35 -03:00
Charles Dang
75b2dfcc4c Don't show ellipsecheck warning if ellipse=none 2014-12-30 07:29:02 +11:00
Elvish_Hunter
256fbc7d1a wml tools GUI: added context menu to the output text box 2014-09-15 17:58:40 +02:00
Elvish_Hunter
a77841e44b wml tools GUI: improved bindings to invoke the context menu 2014-09-15 17:58:39 +02:00
Elvish_Hunter
d61cd6e534 wml tools GUI: removed the 0 from some IntVar() initializations, because it doesn't do anything 2014-08-18 16:20:13 +02:00
Elvish_Hunter
dfb4767af2 wml tools GUI: replaced all IntVar() instances used by checkbuttons with BooleanVar() 2014-08-18 16:20:13 +02:00
Elvish_Hunter
834e5632d0 wml tools GUI: improved credits description for the Tango icons 2014-08-18 16:20:13 +02:00
Elvish_Hunter
3df50dd007 wml tools GUI: fixed the WinError 87 that happened on Python 3.4 2014-08-18 16:20:13 +02:00
Groggy Dice
956fa83677 wmltools: split campaigns/add-ons into separate subtrees for wmlscope
The problem: wmlscope assigns each file to a directory-based subtree, and
assumes that it is visible to every other file in that subtree. The intent
is that each campaign (or add-on of another type) will be in its own
subtree.

However, wmlscope/wmltools has derived these subtrees based on what
arguments get passed to wmlscope, rather than checking whether campaigns
have actually been split out. For instance, invoking wmlscope with
"../data/core ../data/campaigns <userdata>/data/add-ons" will cause
wmlscope to see three subtrees, one of which consists of all mainline
campaigns and another that includes all the user's add-ons. This leads to
many spurious "more than one definition/resource is visible here" errors.

A wildcard like "data/campaigns/*" would be expanded to all the individual
campaign directories. However, the wmlscope user might not know that they
should do that. Also, until the glob module was imported recently, globbing
did not work in the Windows cmd shell.

The solution: declare "campaigns" and "add-ons" to be roots, and check for
their presence in the directory names. If indicated, split out the
subdirectories into their own subtrees. Since it is possible that the user
may have moved, copied, or drafted campaigns/add-ons to another folder
that isn't following Wesnoth convention, also check for that.
2014-08-14 06:05:29 -04:00
Groggy Dice
d2888b1ab3 wmltools GUI: remove -f and -p wmllint options, add -m 2014-08-06 05:48:25 -04:00