diff --git a/configtool/boardpanel.py b/configtool/boardpanel.py index 5425375..b7dfd68 100644 --- a/configtool/boardpanel.py +++ b/configtool/boardpanel.py @@ -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 diff --git a/configtool/printerpanel.py b/configtool/printerpanel.py index a790647..618908d 100644 --- a/configtool/printerpanel.py +++ b/configtool/printerpanel.py @@ -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