FixBug.bjs
authorAlan Knowles <alan@akbkhome.com>
Sat, 5 Jan 2013 15:17:57 +0000 (23:17 +0800)
committerAlan Knowles <alan@akbkhome.com>
Sat, 5 Jan 2013 15:17:57 +0000 (23:17 +0800)
FixBug.js

FixBug.bjs
FixBug.js

index 5574f12..1be751e 100644 (file)
                                                             "|editable": "false",
                                                             "|init": "function() {\n    XObject.prototype.init.call(this);\n    var description = Pango.font_description_from_string(\"monospace\");\n\n    description.set_size(8000);\n    this.el.modify_font(description);\n\n}\n",
                                                             "|load": "function(str) {\n\n// show the help page for the active node..\n \n\n\n \n    this.el.get_buffer().set_text(str, str.length);\n \n    \n     var buf = this.el.get_buffer();\n     \n     \n    \n}",
-                                                            "|show": "function(p) {\n     var line =    '[' + p.status_name + '] <b>'   + \n             GLib.markup_escape_text(p.summary, p.summary.length)  + \"</b>\\n\"  +\n             '<span color=\"#666\">' + \n             GLib.markup_escape_text(p.description,p.description.length).split(\"\\n\").slice(0,3).join(\"\\n\") +\n             '</span>';\n         print(line);\n         \n          this.el.get_buffer().set_text(line, line.length);\n \n}\n",
+                                                            "|show": "function(p) {\n     var line =    '[' + p.status_name + '] <b>'   + \n             GLib.markup_escape_text(p.summary, p.summary.length)  + \"</b>\\n\"  +\n             '<span color=\"#666\">' + \n             GLib.markup_escape_text(p.description,p.description.length) +\n             '</span>';\n         print(line);\n         \n          this.el.get_buffer().set_text(line, line.length);\n \n}\n",
                                                             "|show_line_numbers": true,
                                                             "|xns": "Gtk",
                                                             "items": [
index c448502..3cf3be8 100644 (file)
--- a/FixBug.js
+++ b/FixBug.js
@@ -462,7 +462,7 @@ FixBug=new XObject({
                                                          var line =    '[' + p.status_name + '] <b>'   + 
                                                                  GLib.markup_escape_text(p.summary, p.summary.length)  + "</b>\n"  +
                                                                  '<span color="#666">' + 
-                                                                 GLib.markup_escape_text(p.description,p.description.length).split("\n").slice(0,3).join("\n") +
+                                                                 GLib.markup_escape_text(p.description,p.description.length) +
                                                                  '</span>';
                                                              print(line);