Configtool: don't try to parse help text in the loaded file.
This shouldn't change functionality and is for more robustness.
This commit is contained in:
parent
a48d9edf67
commit
a07e5a7d1e
|
|
@ -300,9 +300,19 @@ class BoardPanel(wx.Panel):
|
||||||
self.candProcessors = []
|
self.candProcessors = []
|
||||||
self.candClocks = []
|
self.candClocks = []
|
||||||
self.tempTables = {}
|
self.tempTables = {}
|
||||||
|
gatheringHelpText = False
|
||||||
|
|
||||||
prevLines = ""
|
prevLines = ""
|
||||||
for ln in self.userBuffer:
|
for ln in self.userBuffer:
|
||||||
|
if gatheringHelpText:
|
||||||
|
if reHelpTextEnd.match(ln):
|
||||||
|
gatheringHelpText = False
|
||||||
|
continue
|
||||||
|
|
||||||
|
if reHelpTextStart.match(ln):
|
||||||
|
gatheringHelpText = True
|
||||||
|
continue
|
||||||
|
|
||||||
if ln.rstrip().endswith("\\"):
|
if ln.rstrip().endswith("\\"):
|
||||||
prevLines += ln.rstrip()[:-1]
|
prevLines += ln.rstrip()[:-1]
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
|
|
@ -245,8 +245,19 @@ class PrinterPanel(wx.Panel):
|
||||||
if self.parseDefineName(ln):
|
if self.parseDefineName(ln):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
gatheringHelpText = False
|
||||||
|
|
||||||
prevLines = ""
|
prevLines = ""
|
||||||
for ln in self.userBuffer:
|
for ln in self.userBuffer:
|
||||||
|
if gatheringHelpText:
|
||||||
|
if reHelpTextEnd.match(ln):
|
||||||
|
gatheringHelpText = False
|
||||||
|
continue
|
||||||
|
|
||||||
|
if reHelpTextStart.match(ln):
|
||||||
|
gatheringHelpText = True
|
||||||
|
continue
|
||||||
|
|
||||||
if ln.rstrip().endswith("\\"):
|
if ln.rstrip().endswith("\\"):
|
||||||
prevLines += ln.rstrip()[:-1]
|
prevLines += ln.rstrip()[:-1]
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue