Wrong Java Format including numbers

If I have a number in my Java-Code it is not formated like

return 0;

It will be shown as


This is a bug as it can be reproduced every time

5 answers

1 accepted

0 votes
Answer accepted

Just released 1.6.3 on Atlassian Marketplace. Please update and thanks for bringing up this issue.

Kind regards

It works, if I find another bug in this case I will report tomorrow.

This is fixed in the latest release of the JIRA Syntax Highlighter plugin. See https://bitbucket.org/hski/syntaxplugin-public/issue/23/rendeer-problems-with-python-code for more details.

Kind regards

P.S. Please report bugs here https://bitbucket.org/hski/syntaxplugin-public/issues?status=new&status=open. Thanks!

Sorry but in current version this error still applies.

But thanks for your response

Which JIRA version and which browser version are you using?

Did you restart your browser after updating the plugin (because this might be a caching problem)?

We use Jira 5.2.6 with Chrome and Firefox in Windows.
I additionally tried it in Chrome in iOS6
Thats what HTML-Code is generated
<div class="container">
  <div class="line number0 index0 alt2">
<code class="java value">2013</code>
<code class="java plain">-</code>
<code class="java value">01</code>
<code class="java plain">-</code>
<code class="java value">24</code> 
<code class="java value">11</code>
<code class="java plain">:</code>
<code class="java value">59</code>
<code class="java plain">:</code>
<code class="java value">10</code>
<code class="java plain">,</code>
<code class="java value">877</code> 

The HTML code is fine. The problem is CSS class "value", which is also used now by JIRA view issue page since 5.2.

I can confirm, you are right. The bug is still in v1.6.2. It is fixed in source, but jar build went wrong, so bugfix is not included in v1.6.2.

Will work on v1.6.3 in the next days to fix this problem.

Kind regards

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 13, 2019 in Marketplace Apps

Marketplace Spotlight: Marketing apps for Confluence to keep your teams working on the same page


263 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you