View Issue Details

IDProjectCategoryView StatusLast Update
0003840mantisbtbugtrackerpublic2004-07-08 07:10
Reportered Assigned Tovboctor  
PrioritynormalSeveritytweakReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.0 
Fixed in Version0.19.0a1 
Summary0003840: Why strip the leading spaces from Description?
Description

It is apparent that Mantis strips the leading spaces from the Description and other text fields.

Some of my developers often post a snippet of the offending code with full (spaces) indentation. Unfortunatley, because of the space-stripping, the results often are hard to read.

Is there any way to preserve indentation/leading spaces in the text fields?

Additional Information

example of indentation being stripped:

<!-- Title -->
<tr>
<td class="form-title">
<input type="hidden" name="project_id" value="1" />
Enter Report Details </td>
<td class="right">
[ <a href="bug_report_page.php">Simple Report</a> ] </td>
</tr>

TagsNo tags attached.

Activities

vboctor

vboctor

2004-05-17 09:07

manager   ~0005525

I already implemented this in CVS for spaces, however, it wasn't implemented for tabs. A tab is now preserved as four spaces.

Fixed in CVS and will be included in 0.19.0.

Related Changesets

MantisBT: master c9711a55

2004-05-17 09:06

vboctor


Details Diff
Fix 0003840: Why strip the leading spaces from Description? (applied to all multi-line fields in issue + issue notes).

M core/string_api.php
- Preserve tab by replacing it with 4 non-blank-spaces. This may be made configurable in the future. The rest of the functionality was already implemented but for spaces only.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2541 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003840
mod - doc/ChangeLog Diff File
mod - core/string_api.php Diff File