Closed reggi closed 8 years ago
Got it working with paddingLeft
on what
.
'pretty-error > trace > item > header > what': _.defaults({
paddingLeft: 1
}, nullStyle),
'pretty-error > trace > item > footer': _.defaults({
}, nullStyle),
'pretty-error > trace > item > footer > addr': _.defaults({
}, nullStyle),
Nope false alarm, still can't get it to work :(
Looks like a renderkid bug. Thanks for reporting it! I'll start working on it this week.
Okay, so this is not a renderkid bug.
The "what": null
means that we do have a <what></what>
tag in our markup, so renderkid correctly tries to render that tag, along with its padding/margin. It just doesn't have any children, so we only see its margin taking up space.
We can fix this simply by removing the <what>
tag.
Okay. I've pushed a change. Can you clone from repo and see if it fixes the problem?
Closing for inactivity. Commit 886fc30 likely does fix the issue, but I can't confirm that. Feel free to open this again if the problem persists.
In my append style I have the
trace
forwhat
andfooter > addr
both set tomarginLeft:1
.You can see the last line in the trace doesn't have a
what
element.However the on last line, after the bullet there are two spaces instead of one.
This is unexpected behavior. Without both of these margins set there is no space after the
at
bullet.I simply want to output: