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

code element text overflow #296

Open
thoughthollow opened this issue Sep 19, 2022 · 0 comments
Open

code element text overflow #296

thoughthollow opened this issue Sep 19, 2022 · 0 comments

Comments

@thoughthollow
Copy link

Hello,

There's an issue with text overflowing in both <code> and also <div class="sourceCode r"> tags.

Here's the html_paged template with the following code just after the Introduction:

{r, echo=TRUE, message=FALSE, warning=FALSE}
print("WhenthePawnHitstheConflictsHeThinksLikeaKingWhatHeKnowsThrowstheBlowsWhenHeGoestotheFightandHe'llWintheWholeThing'ForeHeEnterstheRingThere'sNoBodytoBatterWhenYourMindIsYourMightSoWhenYouGoSolo,YouHoldYourOwnHandandRememberThatDepthIstheGreatestofHeightsandIfYouKnowWhereYouStand,ThenYouKnowWheretoLandandIfYouFallItWon'tMatter,CuzYou'llKnowThatYou'reRight")

image

The fix is easy enough with a couple CSS tweaks:

div.sourceCode {
  word-break: break-all;
}

code {
  word-break: break-all;
}
</style>

image

Could this tweak be added to the default CSS files?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant