Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Comment text in PRs containing words with apostrophes render incorrectly

Matthew Willis March 5, 2024

E.g. PR a .sql file as follows:

# safe to run regardless as these capability assignments don't exist yet for first-time installation.
DELETE
FROM mdl_role_capabilities
WHERE capability IN (
    'my_capability_1',
    'my_capability_2'
);

In the IDE (PHPStorm, in my case), the apostrophe in `don't` does not ruin the code styling Screenshot 2024-03-06 135750.png

In Bitbucket Cloud v8.9.9 (screenshot with `+` in the top-left), the PR renders like the second screenshot, making it difficult to read as it renders the code as comments and comments as code, which is frustrating.

 Screenshot 2024-03-06 140203.png

Current workaround is to amend the PR to avoid using apostrophes in comments (`don't` becomes `do not` etc), but would prefer not to add 'removing apostrophes in file for Bitbucket readability' commits so Bitbucket can display the file legibly. 

Expected result is that Bitbucket can render comments with apostrophes without messing up the styling for the rest of the file. 

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 6, 2024

Hi Matthew,

May I know if you are referring to Bitbucket Cloud and not Bitbucket Server/Datacenter which is on-premises? The reason I ask is that you have mentioned v8.9.9 (Bitbucket Cloud does not use version numbers) and you do not appear to have any access to workspaces containing repositories from the email address that you have raised this ticket with.

Cheers!

- Ben (Bitbucket Cloud Support)

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events