View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0007832 | mantisbt | change log | public | 2007-03-16 17:22 | 2011-12-17 02:47 |
Reporter | drostan | Assigned To | rombert | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Summary | 0007832: Underlining of versions in changelog and roadmap not right for special characters | ||||
Description | If you have special chars in the project or version name (like "A&B"), the length of the line with "===" is based on "A&B", so it's too long. | ||||
Additional Information | Attached a patch (against 1.1.0a2) | ||||
Tags | patch | ||||
Attached Files | fix_title_underlining.diff (1,675 bytes)
Index: changelog_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/changelog_page.php,v retrieving revision 1.18 diff -u -r1.18 changelog_page.php --- changelog_page.php 20 Apr 2006 14:29:56 -0000 1.18 +++ changelog_page.php 16 Mar 2007 22:18:54 -0000 @@ -21,8 +21,8 @@ $t_version_name = version_get_field( $p_version_id, 'version' ); $t_project_name = project_get_field( $t_project_id, 'name' ); - $t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name ); - echo $t_release_title, '<br />'; + $t_release_title = $t_project_name . ' - ' . $t_version_name; + echo string_display($t_release_title), '<br />'; echo str_pad( '', strlen( $t_release_title ), '=' ), '<br />'; $t_description = version_get_field( $p_version_id, 'description' ); Index: roadmap_page.php =================================================================== RCS file: /cvsroot/mantisbt/mantisbt/roadmap_page.php,v retrieving revision 1.3 diff -u -r1.3 roadmap_page.php --- roadmap_page.php 18 Nov 2006 06:33:22 -0000 1.3 +++ roadmap_page.php 16 Mar 2007 22:18:54 -0000 @@ -21,8 +21,8 @@ $t_version_name = $p_version_row['version']; $t_project_name = project_get_field( $t_project_id, 'name' ); - $t_release_title = string_display( $t_project_name ) . ' - ' . string_display( $t_version_name ); - echo $t_release_title, '<br />'; + $t_release_title = $t_project_name . ' - ' . $t_version_name; + echo string_display($t_release_title), '<br />'; echo str_pad( '', strlen( $t_release_title ), '=' ), '<br />'; $t_description = $p_version_row['description']; | ||||