Giter VIP home page Giter VIP logo

Comments (11)

aski-codes avatar aski-codes commented on July 23, 2024 1

I'm on Mac 12.4

from fsharp.formatting.

nojaf avatar nojaf commented on July 23, 2024

Hi there,

Are you sure?

image

I was able to copy the code and paste it just fine in F# interactive.

from fsharp.formatting.

nhirschey avatar nhirschey commented on July 23, 2024

@aski-codes what browser are you using?

It renders with proper spacing on Edge and mobile safari.

from fsharp.formatting.

nojaf avatar nojaf commented on July 23, 2024

Worked for me in Chrome.

from fsharp.formatting.

aski-codes avatar aski-codes commented on July 23, 2024

Hmm, it looks cleaner in your browser, somehow. I'm on Firefox 117.01

from fsharp.formatting.

nojaf avatar nojaf commented on July 23, 2024

It does show slightly off in Firefox for me as well:
image

Although copy-pasting it from there still worked for me.

from fsharp.formatting.

aski-codes avatar aski-codes commented on July 23, 2024

If I do a straight copy, I get:

"(4,2): error FS0010: Unexpected identifier in binding. Expected incomplete structured construct at or before this point or other token."

It looks exactly like the web page, but I noticed a blank starting line 4. If I remove it, so that "input" in line 4 aligns with "let" in line 1, I instead get:

"(1,15): error FS3217: This expression is not a function and cannot be applied. Did you intend to access the indexer via 'expr[index]'?"

billede

from fsharp.formatting.

nhirschey avatar nhirschey commented on July 23, 2024

When I do straight copy+paste from firefox it works correctly. I am on windows 11 and it works. What platform are you on @aski-codes?

I tried pasting directly into dotnet fsi from terminal and vs code, both were correctly aligned.

from fsharp.formatting.

nhirschey avatar nhirschey commented on July 23, 2024

Note: Google search shows various rendering problems for google fonts (we use roboto mono) on firefox, and particularly macOS.

Seems to be related to fontweight. When I uncheck "font-weight: 600" in the css in the firefox inspector, the spacing is correct.

fonts

from fsharp.formatting.

aski-codes avatar aski-codes commented on July 23, 2024

Thanks, how do you get to that place in inspector, I can't seem to match it...

billede

Seems to be related to fontweight. When I uncheck "font-weight: 600" in the css in the firefox inspector, the spacing is correct.

from fsharp.formatting.

aski-codes avatar aski-codes commented on July 23, 2024

looks fine now, thanks so much!

from fsharp.formatting.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.