Preserve ifs when calling other functions after temporary altering it. Fixes a couple of minor bugs.
Added difs env var that can be used anywhere to restore default ifs.
This commit is contained in:
parent
d12c13ee25
commit
c9b9e4e9bf
4 changed files with 4 additions and 3 deletions
|
|
@ -15,7 +15,7 @@ fn statpost {
|
|||
#mdate=`{/bin/date -Rd $stat(1)} # Not used because it is unreliable
|
||||
post_uri=$base_url^`{cleanname `{echo $f | sed -e 's!^'$sitedir'!!'}}^'/'
|
||||
by=$stat(2)
|
||||
ifs=() { summary=`{cat $f/index.md | $formatter | escape_html} }
|
||||
ifs=() {summary=`{ cat $f/index.md | ifs=$difs {$formatter | escape_html} }}
|
||||
}
|
||||
|
||||
%}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue