Ticket #92 (closed Defect: fixed)

Opened 3 years ago

Last modified 3 years ago

enhance bbcode [code]

Reported by: AndyK Assigned to: Rytis
Priority: Undetermined Milestone: Undetermined
Component: Web - Forums Version:
Keywords: forum bbcode Cc:

Description

  1. Every time a text with multiple lines is posted inside the [code]-tags it is displayed with double line spacing. Maybe due to an extra newline?
  1. give the [code] a maxwidth so that it wont break the thread display. With CSS like that:
    <style type="text/css">
    code { 
      display:block; 
      width:80%; 
      margin:0 5em 0 5em; 
      overflow:auto; 
      white-space:pre; 
      color:black; 
      background-color:#e0e0e0; 
      padding:1em; 
      border:1px dashed #600000; 
      font:normal normal normal 1em 1.2em "Courier New",courier,monospace;
    }
    </style> 
    

Change History

04/21/07 03:47:47 changed by Rytis

  • status changed from new to assigned.

1. Because of <br /> tags: each post gets <br /> tags added and then BBCode is processed. <br /> combined with a line feed creates a blank line. I tried to create a quick fix, but it seems that text transform functions need a complete rewrite.

2. I'll add it when BBCode is working correctly.

04/21/07 05:12:15 changed by Rytis

  • status changed from assigned to closed.
  • resolution set to fixed.

I thought of another way to do it, so it's fixed since [12442].

04/21/07 11:56:27 changed by AndyK

In [12442] it seems to me some of my css formatting comes in. ;-)

Thanks.

05/06/07 14:43:28 changed by Nicolas

  • keywords changed from forum bbcode [code] to forum bbcode.

If this page is incomplete or incorrect, please edit it or add it to the wiki to-do list. To do this, you must be logged in; click Login or Register above.