mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-15 17:20:07 +01:00
Take care about how wxString and wxArrayString are substituted in the docs. There are some cases where it is a substring and so should not be replaced.
This commit is contained in:
@@ -168,9 +168,14 @@ def buildEnumsAndMethods(sphinxDir):
|
||||
text = text.replace(item, '""')
|
||||
|
||||
# Replace ArrayXXX stuff...
|
||||
for cpp in ['ArrayString()', 'ArrayInt()', 'ArrayDouble()', 'ArrayString']:
|
||||
for cpp in ['ArrayString()', 'ArrayInt()', 'ArrayDouble()']:
|
||||
text = text.replace(cpp, '[]')
|
||||
|
||||
for cpp, py in [('`ArrayString`', 'list of strings'),
|
||||
('`ArrayInt`', 'list of integers'),
|
||||
('`ArrayDouble`', 'list of floats')]:
|
||||
text = text.replace(cpp, py)
|
||||
|
||||
# Remove lines with "Event macros" in them...
|
||||
text = text.replace('Event macros:', '')
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ def replaceCppItems(line):
|
||||
if item in CPP_ITEMS:
|
||||
continue
|
||||
|
||||
if 'wxString' in item:
|
||||
if 'wxString' == item:
|
||||
item = 'string'
|
||||
elif 'wxCoord' == item:
|
||||
item = 'int'
|
||||
|
||||
Reference in New Issue
Block a user