Defect #17627

Syntax highlighting breaks predefined text (that is outside the <code> tags)

Added by Jānis Elmeris over 8 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution: Affected version:

Description

Two cases: one includes syntax highlighting ("code" tags), the other — doesn't. The syntax highlighting creates a distorted layout: extra space appears, some "deleted" content appears.

As you can see, this is in effect also in your own Redmine installation, so apparently no additional details necessary.

mysql@datas:[(none)]> select * from pavadonis.ologg_42083 order by date limit 44;
Empty set (0.00 sec)

mysql@ti> select * from data order by date;
--------------------+---------------------+ | id | id2_te | date |
--------------------+---------------------+ | 1417713 | 12115809964 | 2014-07-14 18:58:27 |
--------------------+---------------------+
1 row in set (0.00 sec)

mysql@ti> select * from data order by date;
--------------------+---------------------+ | id | id2_te | date |
--------------------+---------------------+ | 1417713 | 12115809964 | 2014-07-14 18:58:27 |
--------------------+---------------------+
1 row in set (0.00 sec)

mysql@da> select * from data order by date;
Empty set (0.00 sec)

mysql@ti> select * from data order by date;
+---------+-------------+---------------------+
| id      | id2_te      | date                |
+---------+-------------+---------------------+
| 1417713 | 12115809964 | 2014-07-14 18:58:27 |
+---------+-------------+---------------------+
1 row in set (0.00 sec)

mysql@ti> select * from data order by date;
+---------+-------------+---------------------+
| id      | id2_te      | date                |
+---------+-------------+---------------------+
| 1417713 | 12115809964 | 2014-07-14 18:58:27 |
+---------+-------------+---------------------+
1 row in set (0.00 sec)

codeinpre.png (43.5 KB) Jānis Elmeris, 2014-08-07 18:31

Also available in: Atom PDF