Line 18: |
Line 18: |
| | | |
| function debugLog(k, v) | | function debugLog(k, v) |
− | table.insert(debug, (k or "?") .. " = " .. (v or "?")) | + | k = tostring(k):gsub("%s+", "") |
| + | v = tostring(v):gsub("%s+", "") |
| + | table.insert(debug, k .. " = " .. v) |
| end | | end |
| | | |
| function debugString() | | function debugString() |
− | return #debug > 0 and args.debug and ([[<pre class="calc-debug" style="display:none"><code>]] .. table.concat(debug, "\n") .. [[</code></pre>]]) or "" | + | return #debug > 0 and args.debug and ([[<pre class="calc-debug" style="text-align:left;display:none"><code>]] .. table.concat(debug, "\n") .. [[</code></pre>]]) or "" |
| end | | end |
| | | |