Mantis Bug Tracker
 

View Issue Details Jump to Notes ] Wiki ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010564mantisbtotherpublic2009-06-05 06:362009-06-26 11:59
ReporterJimi_Joma 
Assigned Tojreese 
PrioritynormalSeveritytweakReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version1.1.7 
Target VersionFixed in Version 
Summary0010564: Mantis is generating empty spaces in field description, summary (all textareafields)
DescriptionWhile adding a new bug there are many empty spaces in all textfields at the beginning of each field. When you want to enter for example summary the mousepointer starts at about 16 blanks. Each time you update a bug, Mantis adds more empty spaces.
Additional InformationThis problem could be solved by changing the files: bug_report_page.php; bug_report_advanced_page.php;bug_update_page.php and bug_update_advanced_page.php

For example: Change this piece of sourcecode
<!-- Description -->
<tr <?php echo helper_alternate_class() ?>>
    <td class="category">
        <?php echo lang_get( 'description' ) ?>
    </td>
    <td colspan="5">
        <textarea <?php echo helper_get_tab_index() ?> cols="80" rows="10"
        name="description"><?php echo $t_bug->description ?></textarea>
    </td>
</tr>


into:

<!-- Description -->
<tr <?php echo helper_alternate_class() ?>>
    <td class="category">
        <?php echo lang_get( 'description' ) ?>
    </td>
    <td colspan="5">
        <textarea <?php echo helper_get_tab_index() ?> cols="80" rows="10" name="description"><?php echo $t_bug->description ?></textarea>
    </td>
</tr>


without a line break in the textarea and you wont have empty spaces in your textarea.

TagsNo tags attached.
Attached Filesdoc file icon Mantis.doc [^] (359,936 bytes) 2009-06-05 06:36

- Relationships

-  Notes
User avatar (0022051)
jreese (administrator)
2009-06-05 09:36

I can't reproduce this in any version of Mantis, not to mention that a line break in the middle of an HTML tag like that should never cause random spaces to be inserted into the text field. It's part of the HTML specification that whitespace between tag attributes is insignificant.
User avatar (0022053)
Jimi_Joma (reporter)
2009-06-06 06:15

This problem could not reproduced with the original mantis files, you are right. In my files I had that line break and two tabs and W3C says: "The TEXTAREA element creates a multi-line text input control. User agents should use the contents of this element as the initial value of the control and should render this text initially.(http://www.w3.org/TR/html401/interact/forms.html#h-17.7 [^])" So the empty spaces are produced by line break with two tabs in the middle of these HTML Tags.

- Issue History
Date Modified Username Field Change
2009-06-05 06:36 Jimi_Joma New Issue
2009-06-05 06:36 Jimi_Joma File Added: Mantis.doc
2009-06-05 09:36 jreese Note Added: 0022051
2009-06-05 09:36 jreese Status new => resolved
2009-06-05 09:36 jreese Resolution open => unable to reproduce
2009-06-05 09:36 jreese Assigned To => jreese
2009-06-06 06:15 Jimi_Joma Note Added: 0022053
2009-06-26 11:59 vboctor Status resolved => closed


MantisBT 1.2.2 git master-1.2.x[^]
Copyright © 2000 - 2010 MantisBT Group
Time: 0.2240 seconds.
memory usage: 1,942 KB
Powered by Mantis Bugtracker