Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/tools/cmd/present: .code -numbers does not actually show line numbers as described in go docs #8862

Closed
gopherbot opened this issue Oct 3, 2014 · 2 comments
Milestone

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Oct 3, 2014

by marty.schoch:

What does 'go version' print?

go version go1.3 darwin/amd64

present version?
$ hg id -i
2b0e5133d4f3+

What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.

1.  Create presentation include `.code -numbers x.go`
2.  Run present

Content demonstrating this can be found here:
https://gist.github.com/mschoch/6d974ef1cb0e0874164a

What happened?

Observe that line numbers are not shown.

What should have happened instead?

Line numbers should be shown.

Please provide any additional information below.

I have worked around the problem by adding custom css to styles.css:

.numbers span:before {
  content: attr(num);
  color: gray;
  display: block;
  float: left;
  width: 2em;
}
@ianlancetaylor
Copy link
Contributor

@ianlancetaylor ianlancetaylor commented Oct 3, 2014

Comment 1:

Labels changed: added repo-tools, release-none.

@gopherbot gopherbot added new labels Oct 3, 2014
@bradfitz bradfitz removed the new label Dec 18, 2014
@rsc rsc added this to the Unplanned milestone Apr 10, 2015
@rsc rsc removed the release-none label Apr 10, 2015
@rsc rsc changed the title present: .code -numbers does not actually show line numbers as described in go docs x/tools/cmd/present: .code -numbers does not actually show line numbers as described in go docs Apr 14, 2015
@rsc rsc modified the milestones: Unreleased, Unplanned Apr 14, 2015
@rsc rsc removed the repo-tools label Apr 14, 2015
@adg
Copy link
Contributor

@adg adg commented Aug 27, 2015

Dupe of #5248

@adg adg closed this Aug 27, 2015
@golang golang locked and limited conversation to collaborators Sep 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
5 participants
You can’t perform that action at this time.