View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004762 | mantisbt | bugtracker | public | 2004-10-22 18:16 | 2005-05-31 11:34 |
Reporter | Eric Seppanen | Assigned To | thraxisp | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.19.0 | ||||
Fixed in Version | 1.0.0a3 | ||||
Summary | 0004762: Preformatted text is misbehaving. | ||||
Description | Here's a block of text enclosed in (pre) tags. It won't render properly on my installation: it's not displayed how I expected it, lots of html tags are generated and some of the data is damaged. I can't figure out why.
| ||||
Tags | No tags attached. | ||||
The text should look like this: |
|
I had the same problem. Mantis 0.19.0 does a word wrap even in PRE texts and I don´t know why. Isn't preformated text ment to be displayed without word-wrap? The function nl2br has a parameter "p_warp=100" (I conjecture) to prevent very long lines from destroying Mantis´ page layout. But there are two problems with Spaces being replaced by " ":
Uncommenting line 70 in core/string_api.php switches off the word-wrapping. The other possibility is to replace the inside of preformatted text, but there are still > and similar things in the text (as you can see below :-)) I prefer not using word-wrapping at all, although the page layout can suffer from this. If one really wants (needs) to write something with very long lines (code-snippets, ascii-art, etc.), he or she should be allowed to do so. Better Word-Wrap:
Or: No-Word-Wrap:
--- 67,72 ---- Correlated to : 0001146 edited on: 10-25-04 06:01 edited on: 10-25-04 06:03 edited on: 10-25-04 06:04 |
|
Fixed in CVS. config_defaults_inc.php -> 1.258 |
|