added html tag support...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-11-05 19:42:49 +03:00
parent ae13de0465
commit 622a27229c
2 changed files with 16 additions and 4 deletions

View File

@ -1310,7 +1310,7 @@ module.MetaActions = {
str += p + p str += p + p
// meta... // meta...
+ (cur.post.event_tag ? + (cur.post.event_tag ?
normalizeTabs('// Event tag: ' + cur.post.event_tag) + p : '') normalizeTabs('// Event source tag: ' + cur.post.event_tag) + p : '')
+ (cur.post.source_tag ? + (cur.post.source_tag ?
normalizeTabs('// Source tag: ' + cur.post.source_tag) + p : '') normalizeTabs('// Source tag: ' + cur.post.source_tag) + p : '')
// code... // code...
@ -1337,7 +1337,13 @@ module.MetaActions = {
if(cur.pre){ if(cur.pre){
p.append($('<pre>').html( p.append($('<pre>').html(
normalizeTabs(cur.pre.toString()) // meta...
(cur.pre.event_tag ?
normalizeTabs('// Event tag: ' + cur.pre.event_tag) + p : '')
+ (cur.pre.source_tag ?
normalizeTabs('// Source tag: ' + cur.pre.source_tag) + p : '')
// code...
+ normalizeTabs(cur.pre.toString())
.replace(/return/g, '<b>return</b>'))) .replace(/return/g, '<b>return</b>')))
} }
@ -1345,7 +1351,13 @@ module.MetaActions = {
if(cur.post){ if(cur.post){
p.append($('<pre>').html( p.append($('<pre>').html(
normalizeTabs(cur.post.toString()))) // meta...
(cur.post.event_tag ?
normalizeTabs('// Event source tag: ' + cur.post.event_tag) + p : '')
+ (cur.post.source_tag ?
normalizeTabs('// Source tag: ' + cur.post.source_tag) + p : '')
// code...
+ normalizeTabs(cur.post.toString())))
} }
} }

View File

@ -1,6 +1,6 @@
{ {
"name": "ig-actions", "name": "ig-actions",
"version": "1.6.0", "version": "1.6.1",
"description": "", "description": "",
"main": "actions.js", "main": "actions.js",
"scripts": { "scripts": {