Kaynağa Gözat

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

Marius Stanciu 5 yıl önce
ebeveyn
işleme
c7bd395368
2 değiştirilmiş dosya ile 4 ekleme ve 2 silme
  1. 1 0
      CHANGELOG.md
  2. 3 2
      tclCommands/TclCommandHelp.py

+ 1 - 0
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
 

+ 3 - 2
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 += '<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)