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

Fix whitespace in links due to newlines #2721

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

alanorth
Copy link
Contributor

@alanorth alanorth commented Dec 20, 2023

References

Description

Fix erroneous whitespace inside link text in community-list cdk tree and browse definition links.

Instructions for Reviewers

Build the frontend and make sure the links on /community-list look and work as expected.

List of changes in this PR:

  • Remove newlines in link text

Checklist

This checklist provides a reminder of what we are going to look for when reviewing your PR. You need not complete this checklist prior to creating your PR (draft PRs are always welcome). If you are unsure about an item in the checklist, don't hesitate to ask. We're here to help!

  • My PR is small in size (e.g. less than 1,000 lines of code, not including comments & specs/tests), or I have provided reasons as to why that's not possible.
  • My PR passes ESLint validation using yarn lint
  • My PR doesn't introduce circular dependencies (verified via yarn check-circ-deps)
  • My PR includes TypeDoc comments for all new (or modified) public methods and classes. It also includes TypeDoc for large or complex private methods.
  • My PR passes all specs/tests and includes new/updated specs or tests based on the Code Testing Guide.
  • If my PR includes new libraries/dependencies (in package.json), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.
  • If my PR includes new features or configurations, I've provided basic technical documentation in the PR itself.
  • If my PR fixes an issue ticket, I've linked them together.

@alanorth alanorth added low priority ux User Experience related works port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release labels Dec 20, 2023
@alanorth alanorth added design and removed ux User Experience related works labels Dec 20, 2023
@tdonohue tdonohue added the bug label Dec 20, 2023
@alanorth alanorth changed the title src/app/community-list-page: fix newlines in links Fix whitespace in links due to newlines Dec 20, 2023
The newlines cause whitespace to be enapsulated in the rendered link.
The newlines cause whitespace to be enapsulated in the rendered link.
@alanorth alanorth force-pushed the fix-community-cdk-tree-links branch from 15a6ee2 to 7207bbb Compare December 20, 2023 19:34
@alanorth
Copy link
Contributor Author

Added another fix for browse links. Before:

before-fs8

After:

after-fs8

@alanorth alanorth added the 1 APPROVAL pull request only requires a single approval to merge label Jan 4, 2024
@alanorth
Copy link
Contributor Author

alanorth commented Jan 4, 2024

Assuming this is uncontroversial so adding 1 APPROVAL tag.

Copy link
Contributor

@nwoodward nwoodward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 It's odd to me that these spaces get created in the first place, but this PR gets rid of them.

@alanorth alanorth merged commit 477ea93 into DSpace:main Jan 19, 2024
13 checks passed
@dspace-bot
Copy link
Contributor

Successfully created backport PR for dspace-7_x:

@alanorth alanorth deleted the fix-community-cdk-tree-links branch January 19, 2024 05:14
@alanorth alanorth added this to the 8.0 milestone Jan 19, 2024
@alanorth alanorth removed the port to dspace-7_x This PR needs to be ported to `dspace-7_x` branch for next bug-fix release label Jan 19, 2024
@alanorth
Copy link
Contributor Author

Thanks @nwoodward. It's due to whitespace being inside the anchor tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 APPROVAL pull request only requires a single approval to merge bug design low priority
Projects
No open projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

Community-List page has extra spaces after links
4 participants