corrected for wikilinks at beginning of line

This commit is contained in:
sejo 2021-11-26 16:21:54 -06:00
parent 59e891d2f2
commit 25f115e88d
1 changed files with 2 additions and 2 deletions

View File

@ -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(/[{}]/,"")