golang / gddo

Go Doc Dot Org
https://godoc.org
BSD 3-Clause "New" or "Revised" License
1.1k stars 266 forks source link

example box around "func NewBPF" is misdrawn #596

Open vixie opened 5 years ago

vixie commented 5 years ago

some of the example code is rendered as normal text, and thus, wrongly indented, and outside the box.

urandom2 commented 5 years ago

Can you provide a link to where this occurs? The exported symbol NewBPF could be attached to any package.

jackwilsdon commented 5 years ago

It looks like it's part of github.com/google/gopacket/pcap.

It appears that the example isn't indented with 4 spaces, and therefore is not rendered as pre-formatted text.

I don't think this is an issue with gddo.

kerolloz commented 5 years ago

check this https://github.com/google/gopacket/pull/633