corrected for wikilinks at beginning of line
This commit is contained in:
parent
59e891d2f2
commit
25f115e88d
|
@ -20,12 +20,12 @@ function nombre2Link( t, r ){ # convierte un nombre con espacios, a uno con r (e
|
|||
|
||||
# si tienen sintaxis de wikilink, y no son líneas de enlace, agrega el link
|
||||
# (el % es por las líneas de uxn jaja)
|
||||
/^[^=%].+{.+}/{
|
||||
/^[^=%]*{.+}/{
|
||||
i = match( $0, /{.+}/)
|
||||
ifinal = index($0, "}") # índice del } final
|
||||
|
||||
link = substr($0, i, ifinal-i+1) # {link}
|
||||
nombre = substr($0, i+1, ifinal-i-1) # link
|
||||
nombre = substr($0, i+1, ifinal-i-1) # link
|
||||
filename = nombre2Link( nombre, "_" )
|
||||
|
||||
gsub(/[{}]/,"")
|
||||
|
|
Loading…
Reference in New Issue