I posted a code example in C with square brackets and ones (accessing element at indexes 1, 1
in a 2D array; here is a link to my answer). Once I pasted a link using the bar button, however, my code example got changed (here is a link to the edit). There were two additional URLs number 2 and 3, pointing to the link of my first example. I caught that, and removed these two URLs, but I missed the changes made to my code.
To fix this bug, the code that renumbers URLs should ignore everything formatted as code.
The bug is easy to reproduce:
- In a new answer window type and highlight a word "Link"
- Highlight the word "Link", and click the [link] button in the tool bar
- In the dialog that opens type
http://www.google.com
; close the dialog - Your screen should look like this:
- In the space between the link and the list of URLs type a code example that looks like this:
int a[1][1];
. Indent by four spaces to format it as code - Type another word "Link" under your code.
- Highlight the second "Link", and click the [link] button in the tool bar
- In the dialog that opens type
http://www.yahoo.com
; close the dialog - Now your screen should look like this:
Note how the code got changed from a[1][1]
to a[1][2]
, and an extra URL at number 2 got added to the list.
ctrl L
) to insert the links.