Skip to content

Conversation

@create-issue-branch
Copy link
Contributor

@create-issue-branch create-issue-branch bot commented Oct 24, 2025

Fixes the following extra line bug in projects-ui editor projects:
image

closes #1267

@rammodhvadia rammodhvadia temporarily deployed to previews/1268/merge October 24, 2025 11:25 — with GitHub Actions Inactive
@rammodhvadia rammodhvadia requested a review from Copilot October 27, 2025 09:44
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes an issue where extra blank lines were being added to the start of code blocks in the instructions panel. The fix introduces a Prism hook that removes multiple leading blank lines from code content before syntax highlighting is applied.

Key changes:

  • Added a Prism hook to strip leading blank lines from code blocks
  • Implemented a flag to ensure Prism configuration only runs once

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/components/Menus/Sidebar/InstructionsPanel/InstructionsPanel.jsx Added Prism hook to remove leading blank lines and configuration flag
CHANGELOG.md Added entry documenting the fix for extra lines in code blocks

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@patch0 patch0 temporarily deployed to previews/1268/merge November 3, 2025 11:09 — with GitHub Actions Inactive
Copy link
Contributor

@loiswells97 loiswells97 left a comment

Choose a reason for hiding this comment

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

Nice 👍

@rammodhvadia rammodhvadia merged commit 3a5bc69 into main Nov 5, 2025
8 checks passed
@rammodhvadia rammodhvadia deleted the issues/1267-_CC_Projects_Extra_line_added_to_the_start_of_some_code_blocks branch November 5, 2025 11:57
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

Successfully merging this pull request may close these issues.

[CC Projects] Extra line added to the start of some code blocks

4 participants