pine64 / pine64/website

Inserted newlines in code block selections due to "user-select: none"

Open
#92 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation help wanted
Dominant language
HTML
Stars
26
Forks
88
PR merge metrics
No merged PRs in 30d

Description

A strange behaviuor when I copy & paste the code block from the web page:

rendered text:

$ BASE=ppp-multi-image
$ DEV=sdb # i.e. sdb or mmcblk0
$ ATTR=RequiredPartition,LegacyBIOSBootable
$ SIZE=11GiB

copied & pasted text:

BASE=ppp-multi-image

DEV=sdb # i.e. sdb or mmcblk0

ATTR=RequiredPartition,LegacyBIOSBootable

SIZE=11GiB

Every line add a new-line.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the copy-and-paste behavior on a rendered code block, then inspect the Hugo-generated HTML and its CSS, especially the selection styling. Done means copying the displayed block produces one line per command without inserted blank lines.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, html, hugo
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.