mirror of
https://github.com/MatMoul/dokytree.git
synced 2024-12-23 08:06:11 +00:00
Bug: PUG identation
This commit is contained in:
parent
6d7942a0b7
commit
16130f81d2
@ -1,12 +1,12 @@
|
|||||||
mixin parseValue(value, level)
|
mixin parseValue(value, level)
|
||||||
if typeof value === 'string'
|
if typeof value === 'string'
|
||||||
if value.substr(0,8) === 'https://' || value.substr(0,7) === 'http://'
|
if value.substr(0,8) === 'https://' || value.substr(0,7) === 'http://'
|
||||||
td
|
td
|
||||||
a(href=value, target='_blank')=value
|
a(href=value, target='_blank')=value
|
||||||
else
|
else
|
||||||
td=value
|
td=value
|
||||||
else if typeof value === 'string' || typeof value === 'number'
|
else if typeof value === 'string' || typeof value === 'number'
|
||||||
td=value
|
td=value
|
||||||
else
|
else
|
||||||
if Array.isArray(value)
|
if Array.isArray(value)
|
||||||
if value.length > 0
|
if value.length > 0
|
||||||
|
Loading…
Reference in New Issue
Block a user