Last visit was: It is currently Sun Oct 06, 2024 5:30 pm


All times are UTC-05:00




Post new topic Reply to topic  [2 posts ] 
    Author Message
     Post subject:[code] tags are broken and removes all newlines!
    PostPosted:Sat Sep 21, 2019 4:35 pm 
     

    Joined:Mon Apr 23, 2007 1:16 pm
    Posts:190
    here is a code tag with "foo" "bar" "baz" separated by newlines inside:
    Code:
    foo bar baz
    ... but the forum removed all the newlines, because code doesn't need newlines, right? (especially if you're using python! but even if you aren't, newlines harms readability right?)


    Top
    Offline  
     Post subject:Re: [code] tags are broken and removes all newlines!
    PostPosted:Sat Sep 21, 2019 4:39 pm 
     

    Joined:Mon Apr 23, 2007 1:16 pm
    Posts:190
    for a (dirty?) quickfix, just add the CSS:
    Code:
    .codecontent{white-space: pre-line;}
    somewhere.


    Top
    Offline  
    Display posts from previous: Sort by 
    Post new topic Reply to topic

      All times are UTC-05:00


      Who is online

      Users browsing this forum: No registered users and 1 guest


      You cannot post new topics in this forum
      You cannot reply to topics in this forum
      You cannot edit your posts in this forum
      You cannot delete your posts in this forum
      You cannot post attachments in this forum

      Search for:
      Jump to:  
      cron
      Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
      Theme created by Miah with assistance from hyprnova