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

Code block formats wrong after upgrade

Dean Fenton May 9, 2016

After we upgraded from 5.8.6 to 5.9.10 today, proportional formatting in our code blocks has failed. We do not use any tabs, just spaces for indents. The lines that fail are those that have C code words like "const" in them.

For an eg, see: https://doc.hcc-embedded.com/display/TLS/tls_tcp_connect

Conversely, the following page, which has no code words, is still OK:

https://doc.hcc-embedded.com/display/TLS/tls_receive_tcp

Grateful for any help as our live site has hundreds of pages affected by this.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Dean Fenton May 9, 2016

Update: we think it's multiple spaces after a keyword that is the problem. The trouble is, we use the spaces because in the past using tabs has caused us a lot of trouble.

0 votes
Dean Fenton May 9, 2016

To test this, paste the following into a code block:

t_ip_ret tls_tcp_connect (
    const t_ip_port *              p_ip_port,
    const t_tls_conn_inf * const   p_inf,
    conts t_ip_port *              p_ip_port,
    conts t_tls_conn_inf * conts   p_inf )
Lines 2 and 3 have const and fail on spacing. Lines 4 and 5 have "conts" substituted for "const" and these are OK. So the number of characters is the same but the C code word messes things up.
TAGS
AUG Leaders

Atlassian Community Events