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 copy in learn pages does not preserve line spacing #8288

Closed
Nadeeshan96 opened this issue Nov 17, 2023 · 1 comment · Fixed by #8571
Closed

Code copy in learn pages does not preserve line spacing #8288

Nadeeshan96 opened this issue Nov 17, 2023 · 1 comment · Fixed by #8571
Assignees
Labels
Area/LearnPages Issues related to all the pages of the Learn section. Category/UIUX Issues related to the UI components and user experience. Reason/EngineeringMistake Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Type/Bug Bugs that need to be fixed.

Comments

@Nadeeshan96
Copy link
Contributor

Description

A brief description of the bug.

When copying code from learn pages using the copy button, the line spacing is not preserved.
E.g.:
https://ballerina.io/learn/get-started/#write-a-simple-rest-api

image

The above code is pasted as follows without proper formatting and line spacing.

import ballerina/http;

listener http:Listener httpListener = new (8080);

service / on httpListener {
resource function get greeting() returns string {
return "Hello, World!";
}

resource function get greeting/[string name]() returns string {
return "Hello " + name;
}
}

Steps to reproduce

The steps to be followed to reproduce the issue.

Affected version(s)

The versions that are affected by the issue.

Related website/documentation area

Add/Uncomment the relevant area label out of the following.

Related issue(s) (optional)

Any related issues such as sub tasks and issues reported in other repositories (e.g., component repositories), similar problems, etc.

Suggested label(s) (optional)

Optional comma-separated list of suggested labels. Non committers can’t assign labels to issues, and thereby, this will help issue creators who are not a committer to suggest possible labels.

Suggested assignee(s) (optional)

Optional comma-separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, and thereby, this will help issue creators who are not a committer to suggest possible assignees.

@Nadeeshan96 Nadeeshan96 added Type/Bug Bugs that need to be fixed. Area/LearnPages Issues related to all the pages of the Learn section. labels Nov 17, 2023
@praneesha praneesha added the Category/UIUX Issues related to the UI components and user experience. label Nov 20, 2023
Copy link

This issue is NOT closed with a proper Reason/ label. Make sure to add proper reason label before closing. Please add or leave a comment with the proper reason label now.

      - Reason/EngineeringMistake - The issue occurred due to a mistake made in the past.
      - Reason/Regression - The issue has introduced a regression.
      - Reason/MultipleComponentInteraction - Issue occured due to interactions in multiple components.
      - Reason/Complex - Issue occurred due to complex scenario.
      - Reason/Invalid - Issue is invalid.
      - Reason/Other - None of the above cases.

@praneesha praneesha added the Reason/EngineeringMistake Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/LearnPages Issues related to all the pages of the Learn section. Category/UIUX Issues related to the UI components and user experience. Reason/EngineeringMistake Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Type/Bug Bugs that need to be fixed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants