Code Monkey home page Code Monkey logo

Comments (7)

Mottie avatar Mottie commented on May 25, 2024 2

Hi @jerone!

That sounds like a good idea, I'll take a look!

from github-userscripts.

Mottie avatar Mottie commented on May 25, 2024 1

Derp, all I needed to do was to add css to hide the first whitespace element added by the userscript.

from github-userscripts.

jerone avatar jerone commented on May 25, 2024

@Mottie Saw you commit, all inline whitespaces work perfectly now. 🎉

I do however see an extra space character before every line now. For example jerone/UserScripts@0c1e262, the first userscript block in GitHub_Commit_Compare.user.js is not prefixed with a space in the code, still I see the space character.
2017-10-02 10_38_44-merge pull request 120 from jerone_github-commit-compare jerone_userscripts 0

Hope you can reproduce and find a solution.

from github-userscripts.

Mottie avatar Mottie commented on May 25, 2024

Hmm, the space you're reporting, I think, is due to the replacement of the "+" (or "-") in the diff. So the script that is replacing that symbol is the culprit; it's the github-remove-diff-signs.user.js script, if you're using it.

I do however see an issue in the readme file from that same commit - it looks like the space inside the span is being removed and the carriage returns are misaligned. I'll try to work on this later today.

from github-userscripts.

jerone avatar jerone commented on May 25, 2024

@Mottie commented on Oct 2, 2017, 2:56 PM GMT+2:

Hmm, the space you're reporting, I think, is due to the replacement of the "+" (or "-") in the diff. So the script that is replacing that symbol is the culprit; it's the github-remove-diff-signs.user.js script, if you're using it.

You are right, I'm using that script. Maybe you can use a different whitespace character for that...

I do however see an issue in the readme file from that same commit - it looks like the space inside the span is being removed and the carriage returns are misaligned. I'll try to work on this later today.

Just noticed it too. It's not showing any whitespace character.

from github-userscripts.

Mottie avatar Mottie commented on May 25, 2024

Maybe you can use a different whitespace character for that...

I tried that, but I think it's best to completely remove the "+", "-" or first space because the whole reason we're doing it is to make it easier to copy/paste the code. The main issue then becomes removing the leading space in the expanded code section. I'll leave the detection and processing of the expanded section for a later version.

It's not showing any whitespace character.

It's the weirdest thing ever... I had to switch all the spans to use display: inline to get them to show, then I found that only the diffs for markdown and non-extension files (e.g. LICENSE) were effected by a misalignment of the placeholder symbols.

I ended up adding a work-around to adjust the specific diff files and then removing all tab-size adjustment code since I couldn't set a width with display: inline. It should all be working smoothly now.

from github-userscripts.

jerone avatar jerone commented on May 25, 2024

It should all be working smoothly now.

It works great now! Thanks for fixing so fast.

from github-userscripts.

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.