Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

[Forum Bug] Embedded Gist display munges whitespace formatting deeper than 3 or so tabs.

September 30 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
I don't know if I'm just noticing this or if there has been a change to the format recently, but the embedded gists are smashing any whitespace greater than about 3 or 4 tabs. Here's a screenshot:


You can see that the forum has pulled all the tabs to a maximum indent level, whereas the Gist's native view has reasonable indents. I wouldn't much care, except that occasionally I need to debug scripts, and having them smashed up like that make it a bit obnoxious...


Here is the most recent place I noticed this: https://app.roll20.net/forum/post/1143437/script-u...
September 30 (10 years ago)
Lithl
Pro
Sheet Author
API Scripter
Just followed your example link, and the embedded gist seems to render correctly. The issue is either transient or there's something else involved.
September 30 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
Interesting. I'll restart the browser, must be something else...
September 30 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
hmm.. still persisting. Tried it in Safari and Firefox and it's fine, so it seems to be just Chrome for Mac (37.0.2062.124). Tried it in Incognito and different profiles with the same results.

Wonder if anyone else is seeing this issue.
September 30 (10 years ago)
Pat S.
Forum Champion
Sheet Author
I followed the link to the thread then the gist link and while it is not as bad as yours the gist looks like someone put major indents into the lines.
September 30 (10 years ago)
Pat S.
Forum Champion
Sheet Author
The serious indent starts around line 82 where they start the "handleInput= function" line. There are two other functions above it that are similar but they do not have anything seriously embedded in it.

Embedded in the line 82 function there are a bunch of if else declarations and inside those are more of the if else lines that contain more of them. It looks to follow the convention that my programming teacher recommended following.

Is that how your pics looks like when scrolled all the way to the right side?
September 30 (10 years ago)
The Aaron
Roll20 Production Team
API Scripter
I think you are seeing it as I wrote it. What I'm seeing is that at some point everything is aligned to a single tabstop, at about 4 tabs indented. If you look at the picture above, you can see where the beginnings of all the lines are at the same indent.
September 30 (10 years ago)
Pat S.
Forum Champion
Sheet Author
Ah, ok. I wasn't paying attention to the forum. I thought gist was the problem.

To my browser, the forum looks identical to the gist. I'm not seeing any difference between the two like you are showing.