Skip to content

Copy/paste content of centred code block #118

Answered by jothepro
ilg-ul asked this question in Q&A
Discussion options

You must be logged in to vote

Regarding he off-centered button: I figured out that the absolute positioning of the button doesn't work well with the flexbox environment.
This needs further investigation, but a quick fix should be:

.command .fragment {
  margin: 0;
}

The extra whitespace and newline in the copied content seems to be caused by the formatting of the raw HTML. If you change the HTML to a version without newlines and indentation, the additional whitespace is gone:

<div class="command">
<div class="fragment"><div class="line">xpm install @micro-os-plus/utils-lists@latest --verbose</div></div>
</div>

Doxygen seems to not indent the generated HTML properly, so this never was a problem. But I agree that the co…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ilg-ul
Comment options

You must be logged in to vote
2 replies
@jothepro
Comment options

@ilg-ul
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants