Skip to content

[docs] line numbers are copied when using linenos parameter in {% highlight html linenos %} #13979

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

Closed
GabLeRoux opened this issue Jun 29, 2014 · 1 comment

Comments

@GabLeRoux
Copy link

Line numbers are copied when linenos is used with highlight in documentation, copying content with the corner button.

This happens on code snippet under Markup at
http://getbootstrap.com/javascript/#tooltips

See code here
https://github.com/twbs/bootstrap/blob/master/docs/_includes/js/tooltips.html#L61-L72

I think ZeroClipboard is being used for this, so it could be an issue with the code highlighter and not bootstrap3.

Copied content:

 1 <!-- HTML to write -->
 2 <a href="#" data-toggle="tooltip" title="Some tooltip text!">Hover over me</a>
 3
 4 <!-- Generated markup by the plugin -->
 5 <div class="tooltip top" role="tooltip">
 6   <div class="tooltip-arrow"></div>
 7   <div class="tooltip-inner">
 8     Some tooltip text!
 9   </div>
10 </div>

Should be:

<!-- HTML to write -->
<a href="#" data-toggle="tooltip" title="Some tooltip text!">Hover over me</a>

<!-- Generated markup by the plugin -->
<div class="tooltip top" role="tooltip">
  <div class="tooltip-arrow"></div>
  <div class="tooltip-inner">
    Some tooltip text!
  </div>
</div>
@juthilo juthilo added the docs label Jun 29, 2014
@hnrch02
Copy link
Collaborator

hnrch02 commented Jun 30, 2014

Hmm, we don't use linenos anywhere else in the docs other than this one place. It seems that it slipped in with fd293be and hasn't been noticed ever since. @mdo Any reason you included the line numbers here?

@cvrebert cvrebert added this to the v3.2.1 milestone Jun 30, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants