You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When formatting/concatenating the latex "post" markup we currently rely on the items in the post array to be just strings of closing curly brackets so that it doesn't matter in which order they are concatenated. To be safe against future additions to the post templates and against people copying the "algorithm" we should add a reverse_array helper function and call it on the post array before concatenating it.
localfunctionreverse_array (arr)
if'table' ==type(arr) thenlocalrev= {}
fori=#arr, 1, -1dorev[#rev+1] =arr[i]
endreturnrevenderror"Expected argument to be table"endpost=table.concat( reverse_array(post) )
The text was updated successfully, but these errors were encountered:
When formatting/concatenating the latex "post" markup we currently rely on the items in the
post
array to be just strings of closing curly brackets so that it doesn't matter in which order they are concatenated. To be safe against future additions to thepost
templates and against people copying the "algorithm" we should add areverse_array
helper function and call it on thepost
array before concatenating it.The text was updated successfully, but these errors were encountered: