-
Notifications
You must be signed in to change notification settings - Fork 68
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
Long lines do not wrap properly #66
Comments
Have you got an URL I can reproduce this with? |
@JonnoFTW: Have you got any fix in mind? |
I don't know sorry, my CSS skills aren't that good. |
It seems like a commonly used method for dealing with this is making the "code area" a <table>
<tr><td class="line"></td><td>(line 1)</td></tr>
<tr><td class="line"></td><td>(line 2)</td></tr>
</table> pre table {
border-spacing: 0;
border-collapse: collapse;
}
pre td.line {
width: 1%;
white-space: nowrap;
text-align: right;
min-width: 2em;
} GitHub uses a similar approach for displaying code in repositories. |
@YellowAfterlife: Would you draft a PR? |
I'll try tomorrow. Been a little while since I've last poked with actual Chrome extensions (as opposed to making userscripts). |
@YellowAfterlife: I'll take a look at your PR tomorrow. |
I am trying to view a .tex file with very long lines, but the
<pre>
element does not split these long lines despite it having element style:Adding
!important
to these rules makes the line wrap, but there is no padding at the start of the newline, so it goes below the line number margin:The text was updated successfully, but these errors were encountered: