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.candClocks = []
|
||||
self.tempTables = {}
|
||||
gatheringHelpText = False
|
||||
|
||||
prevLines = ""
|
||||
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("\\"):
|
||||
prevLines += ln.rstrip()[:-1]
|
||||
continue
|
||||
|
|
|
|||
|
|
@ -245,8 +245,19 @@ class PrinterPanel(wx.Panel):
|
|||
if self.parseDefineName(ln):
|
||||
continue
|
||||
|
||||
gatheringHelpText = False
|
||||
|
||||
prevLines = ""
|
||||
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("\\"):
|
||||
prevLines += ln.rstrip()[:-1]
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in New Issue