Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"data-exptxt" empty when used inside a loop #50

Open
twistedpixel opened this issue Apr 17, 2019 · 1 comment
Open

"data-exptxt" empty when used inside a loop #50

twistedpixel opened this issue Apr 17, 2019 · 1 comment

Comments

@twistedpixel
Copy link

Seems like "data-exptxt" only gets set once when r() is used inside a loop. For example:

foreach([1,2,3,4,5] as $n) { r($n); }

The result of the above code is that only the first output has "data-exptxt" set. All others do not.

@digitalnature
Copy link
Owner

Yes, this is a expected behavior and caused by static $lineInst = array();
I don't think it's necessary to display the same expression multiple times in such cases.
But if you want this, just remove the static keyword in the code above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants