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
While I have been following the tutorials I have noticed a minor issue when copy/pasting some code snippets. It appears that code snippets that are written explicitly in the markdown (i.e. not via include_codefile) have used tabs as indentation, however, when viewing the same code snippet on dojo.io the indentation is rendered as spaces. So, if copy/pasting a code snippet with this issue when following a tutorial the user will experience tslint errors in the console as the downloadable initial project provided at the beginning of the tutorial includes the "indent": [ true, "tabs" ] tslint setting in tslint.json.
Of course this can be fixed by the user when copy pasting code manually or running an equivalent of convert spaces to tabs in their editor, but perhaps there's a way that this can be easily fixed when the site is being generated requiring one less concern from the user?
The text was updated successfully, but these errors were encountered:
Hi,
While I have been following the tutorials I have noticed a minor issue when copy/pasting some code snippets. It appears that code snippets that are written explicitly in the markdown (i.e. not via
include_codefile
) have used tabs as indentation, however, when viewing the same code snippet on dojo.io the indentation is rendered as spaces. So, if copy/pasting a code snippet with this issue when following a tutorial the user will experience tslint errors in the console as the downloadable initial project provided at the beginning of the tutorial includes the"indent": [ true, "tabs" ]
tslint setting intslint.json
.Example:
Tabs:
https://github.com/dojo/dojo.io/edit/master/site/source/tutorials/003_creating_widgets/index.md#L58
Spaces:
https://dojo.io/tutorials/003_creating_widgets/#1 (you'll have to scroll down a bit)
Of course this can be fixed by the user when copy pasting code manually or running an equivalent of convert spaces to tabs in their editor, but perhaps there's a way that this can be easily fixed when the site is being generated requiring one less concern from the user?
The text was updated successfully, but these errors were encountered: