Giter Club home page Giter Club logo

Comments (2)

mmucklo avatar mmucklo commented on July 17, 2024

It seems perhaps this could be an option in the config that perhaps could
be turned on or off? Or we could just use it for leading or trailing
spaces?

On Tue, Oct 29, 2013 at 11:00 AM, Scott Baker [email protected]:

I want to open a dialog about a recent commit that I just landed. I had a
string the was named " name" that I was outputting with Krumo. When you
output something that has a space in the name, it's VERY hard to see in the
HTML. I spent about an hour trying to print out $array["name"] because
that's what krumo was displaying, because it was masking the space.

The new commit puts in ␣ in the name to show there is a space there. This
may cause some problems for other people though. Right now it will do that
for ANY spaces in the key name. I never use spaces in key names, but other
people might.

For example if you had the data $array["foo bar"] = 12; (note the TWO
spaces) the HTML output will display it as one space. We may have a lot of
users with a lot of ␣ in their output if they use spaces. I'd like to make
this features "smart" so it's not confusing for users, but I'm not 100%
sure how.


Reply to this email directly or view it on GitHubhttps://github.com/oodle/krumo/issues/13
.

from krumo.

scottchiefbaker avatar scottchiefbaker commented on July 17, 2024

I think I'll add an option to disable all "smart" features of Krumo in the config. The list right now being:

  1. Sorting of assoc arrays
  2. Datetime guessing
  3. Space in name handling

etc. Good idea. I'll push work on this for my next version.

from krumo.

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.