On 2015-03-27, Damien Regad <dre...@mantisbt.org> wrote: > 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;
Thanks! I spent a fair amount of time Googling and searching the web page and never managed to find that. It looks like the messed up indentation is always a line that follows a wrapped line, so that should do it. > This might cause text to overflow, or the width to become very wide; No worries, that's exactly what I want/expect with <pre> and </pre>. There are times when newlines are significant in source code and in program input/output. Creating an attachment for a half-dozen lines of text is a PITA for everybody involved, so just turning off wrapping should do nicely. > at some point in the future, we'll probably replace this legacy code > by CSS with scroll bars to display pre tags. -- Grant Edwards grant.b.edwards Yow! Those people look at exactly like Donnie and gmail.com Marie Osmond!! ------------------------------------------------------------------------------ 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