Fiddle: Spacing issues with <code> tags in tour

Created on 17 Jul 2019  路  10Comments  路  Source: electron/fiddle

image

this should be calls BrowserWindow

bug good first issue

All 10 comments

I also found this
image

After inspecting the source code, I believe this is an issue with <code> tags.
image
image

more info...
OS: Linux, Ubuntu 19.04.
Fiddle Versison: v0.9.0

I think #216 didn't work here because the HTML parser does not detect spaces at the beginning of the line as a whitespace character. If it did, indenting would be hard (each line actually has like 12 spaces in front of it 馃槄).

This does not work:

<p>
  Every Electron app starts with a main script, very similar to how
  a Node.js application is started. The main script runs in the "main
  process". To display a user interface, the main process creates renderer
  processes 鈥撀爑sually in the form of windows, which Electron calls 
   <code>BrowserWindow</code>.
</p>

but this should:

<p>
  Every Electron app starts with a main script, very similar to how
  a Node.js application is started. The main script runs in the "main
  process". To display a user interface, the main process creates renderer
  processes 鈥撀爑sually in the form of windows, which Electron
  calls <code>BrowserWindow</code>.
</p>

@kerolloz if you'd like to take this up, this should be an easy problem to fix!

There's also the classic/old-school "use &nbsp;" solution.

@erickzhao

Okay, I'll fix it

I have a pull request ready but am unable to push my fix.

I have 2FA and use SSH instead of HTTPS.
EDIT: The tests are passing, forgot to add this. Also updated the snapshot for this.

ERROR: Permission to electron/fiddle.git denied to arnitkun.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Hi @arnitkun, you would want to fork the repository first, since your account does not have push access for electron/fiddle.

For more details: https://help.github.com/en/articles/creating-a-pull-request-from-a-fork

yeah, sorry I forgot I can do that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

erickzhao picture erickzhao  路  4Comments

hoangph271 picture hoangph271  路  8Comments

bpasero picture bpasero  路  5Comments

simurai picture simurai  路  8Comments

nornagon picture nornagon  路  5Comments