Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#92 closed Defect (fixed)

enhance bbcode [code]

Reported by: AndyK Owned by: 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 (4)

comment:1 Changed 18 years ago by Rytis

Status: newassigned
  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.
  1. I'll add it when BBCode is working correctly.

comment:2 Changed 18 years ago by Rytis

Resolution: fixed
Status: assignedclosed

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

comment:3 Changed 18 years ago by AndyK

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

Thanks.

comment:4 Changed 18 years ago by Nicolas

Keywords: [code] removed
Note: See TracTickets for help on using tickets.