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:
Markus Hitter 2015-07-14 22:38:28 +02:00
parent a48d9edf67
commit a07e5a7d1e
2 changed files with 21 additions and 0 deletions

View File

@ -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

View File

@ -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