- added some '\n' chars in the Help Tcl command to make the help more readable

This commit is contained in:
Marius Stanciu 2020-04-25 19:59:50 +03:00 committed by Marius
parent 769b5165b4
commit c7bd395368
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -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 += '<br>'.join(displayed_text)
cmd_enum += '<br><br>%s<br>%s<br>' % (
cmd_enum += '<br><br>%s<br>%s<br><br>' % (
_("Type help <command_name> for usage."), _("Example: help open_gerber"))
self.app.shell.append_raw(cmd_enum)