From c7bd395368c377fe01cc9fce7e372213ff3d9901 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sat, 25 Apr 2020 19:59:50 +0300 Subject: [PATCH] - added some '\n' chars in the Help Tcl command to make the help more readable --- CHANGELOG.md | 1 + tclCommands/TclCommandHelp.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c9ac9e74..0e3f5aef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ CHANGELOG for FlatCAM beta - ensured that on Graceful Exit (CTRL+ALT+X key combo) if using Progressive Plotting, the eventual residual plotted lines are deleted. This apply for Tool NCC and Tool Paint - fixed links in Attributions tab in Help -> About FlatCAM to be able to open external links. - updated Google Translations for French and Spanish languages +- added some '\n' chars in the Help Tcl command to make the help more readable 24.04.2020 diff --git a/tclCommands/TclCommandHelp.py b/tclCommands/TclCommandHelp.py index 35348be0..cb19ddf3 100644 --- a/tclCommands/TclCommandHelp.py +++ b/tclCommands/TclCommandHelp.py @@ -68,7 +68,8 @@ class TclCommandHelp(TclCommand): if name not in self.app.tcl_commands_storage: return "Unknown command: %s" % name - self.app.shell.append_output(self.app.tcl_commands_storage[name]["help"]) + help_for_command = self.app.tcl_commands_storage[name]["help"] + '\n\n' + self.app.shell.append_output(help_for_command) else: if not args: cmd_enum = '%s\n' % _("Available commands:") @@ -108,7 +109,7 @@ class TclCommandHelp(TclCommand): displayed_text = ['> %s\n' % cmd for cmd in sorted(self.app.tcl_commands_storage)] cmd_enum += '
'.join(displayed_text) - cmd_enum += '

%s
%s
' % ( + cmd_enum += '

%s
%s

' % ( _("Type help for usage."), _("Example: help open_gerber")) self.app.shell.append_raw(cmd_enum)