Grant Edwards <grant.b.edwards@...> writes:

> I want to include code and program input/output snippets in issue
> comments, but I can't convince Mantis not to muck up the formatting.
> 
> I've tried using <pre> and </pre> and that helps, but Mantis is still
> wrapping long lines and altering the indentation of some other lines.
> 
> How do I get unmolested text blocks into comments?

By default, Mantis will wrap text within html pre tags to 100 chars. This
width is not configurable at this time, but you can turn off this behavior
entirely with the following setting:

$g_wrap_in_preformatted_text = OFF;

This might cause text to overflow, or the width to become very wide; at some
point in the future, we'll probably replace this legacy code by CSS with
scroll bars to display pre tags.

Hope this helps.



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
mantisbt-help mailing list
mantisbt-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mantisbt-help

Reply via email to