mirror of
https://github.com/flynx/pWiki.git
synced 2025-10-29 10:00:08 +00:00
tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
809b592bd6
commit
2c6c63fa4f
10
wiki.js
10
wiki.js
@ -177,7 +177,8 @@ var macro = {
|
||||
function(context, args, text, state){
|
||||
var name = args.name
|
||||
|
||||
//text = text || args.text
|
||||
// XXX
|
||||
text = text || args.text
|
||||
text = this.parse(context, text, state, true)
|
||||
|
||||
if(state.slots[name] == null){
|
||||
@ -266,9 +267,10 @@ var macro = {
|
||||
args[((stage[res.name] || {}).macro_args || [])[i] || i] = e
|
||||
})
|
||||
|
||||
if(args.text){
|
||||
res.text = args.text
|
||||
}
|
||||
// XXX not sure about this....
|
||||
//if(args.text){
|
||||
// res.text = args.text
|
||||
//}
|
||||
|
||||
// html-like...
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user