Announcement

Collapse
No announcement yet.

Lines don't wrap in some threads

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Lines don't wrap in some threads

    I notice that some messages have very long lines that don't wrap. These are difficult to read and sometimes I avoid them altogether because of that! I thought that it was perhaps a FireFox problem, but I looked at the same pages in Galeon and it occurs there as well. Dillo displays the messages correctly. I am not sure exactly which threads have this problem, but I think it occurs when the CODE tag is used, perhaps also in other places. I think there is a bug in the forum software. Any thoughts?

    PS: Here is an example thread:
    http://kubuntuforums.net/forums/inde...7237#msg197237


    #2
    Re: Lines don't wrap in some threads

    I've 'stickied' my How To: Include hyperlinks in posts - the SHORT way! on the first page of the Documentation > How To's board.

    When this isn't observed, that's how these 'stretched out threads' get created.
    Windows no longer obstructs my view.
    Using Kubuntu Linux since March 23, 2007.
    "It is a capital mistake to theorize before one has data." - Sherlock Holmes

    Comment


      #3
      Re: Lines don't wrap in some threads

      Thanks Snowhog! I like to format my messages intelligently so I'll be using that from now on, but I never would have guessed that way of doing it.

      However, if you look at the example thread that I gave, the problem is not a link. The longest line, by far, is just a regular text line which sticks out much further than the rest. Perhaps it's a bug in the message box editor. Did the poster paste from somewhere and carry over a piece of code, or does the code tag rendering confuse the browser. I have no idea.

      Comment


        #4
        Re: Lines don't wrap in some threads

        I visited the link you posted. It doesn't display 'wide' for me - using Konqueror.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Lines don't wrap in some threads

          I just viewed the thread in question, and I'm not seeing what is causing the problem. The thread is displaying wide for me, using Shiretoko/Firefox 3.5.

          My guess would be spaces in one of the code boxes though, based upon my knowledge of html and CSS. As the other text will wrap or spread out based on the width of the elements that are set to be a specific width.

          If it is what I think it is, there isn't really a way to fix it other than beat bad members for posting wide code boxes.

          Comment


            #6
            Re: Lines don't wrap in some threads

            If you are seeing it too, as is Ole Juul, then the issue must be 'browser' specific. Can you fire up Konqueror and look at the post and report back?
            Windows no longer obstructs my view.
            Using Kubuntu Linux since March 23, 2007.
            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

            Comment


              #7
              Re: Lines don't wrap in some threads

              I believe I know what the problem is. In that post, the following portion contains a size= entry that 'some' browsers may incorrectly interpret as a font size change for all text that follows. I've bolded it in red.
              00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
              Subsystem: Acer Incorporated [ALI] Device 0146
              Flags: medium devsel, IRQ 10
              Memory at c2000000 (32-bit, non-prefetchable) [[b]size = 256] <<space before/after = to prevent it being interpreted as a font size change.
              I/O ports at 1c20 [size=32]
              Kernel modules: i2c-i801
              When you view this post, in your browser, is the text HUGE from this point and below?
              Windows no longer obstructs my view.
              Using Kubuntu Linux since March 23, 2007.
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #8
                Re: Lines don't wrap in some threads

                Originally posted by Snowhog
                If you are seeing it too, as is Ole Juul, then the issue must be 'browser' specific. Can you fire up Konqueror and look at the post and report back?
                Konqueror does not display the thread in question wide. There is not a change in font size after that though, are there a bunch of spaces though?

                If it is what I think it is, spaces in the code boxes (which are pretty much nothing more than "preformatted" text with a pretty box around it), then it's not an issue so much as one browser respecting the spaces in the preformatted text, and another discarding any that do not have another visible character afterwards. At any rate, I can nose through the css to see if I can find anything that would cause the differences... but given the notorious mess that HTML and CSS for forum software like this is typically found to be, I suspect I won't be able to find the source of the problem. Usually I'd run stuff like this through a html and css validator, but something like this gives so many failures I go cross eyed mucking through the validator with them.

                As for Konquror, there is another issue. When I'd log in, it accepted it multiple times, only to log me back out and request I reauthenticate when I'd go try to view recent unread posts. Any ideas there?

                Comment


                  #9
                  Re: Lines don't wrap in some threads

                  Yes. HUGE font change. I'll fix the post so that the change in font doesn't occur.
                  Windows no longer obstructs my view.
                  Using Kubuntu Linux since March 23, 2007.
                  "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                  Comment


                    #10
                    Re: Lines don't wrap in some threads

                    Okay, here's a start. The code box in that thread does indeed have a bunch of spaces after each line of code in the box. I am not sure if it's the forum software reparsing the spaces in the code block to nonbreaking spaces because they are within the code box, or if the poster did that when writing up the code block, but it appears that Konqueror discards these extra spaces at the end of the line, where Firefox displays them.

                    To me, Firefox is then correctly displaying the code block and Konqueror is making a choice for the viewer to "fix" this issue that may or may not have been an intentional result of what the poster included in the code block.

                    Comment


                      #11
                      Re: Lines don't wrap in some threads

                      Would you take a screen shot of what you see and post it here so I can see what you are seeing? That will allow me to make any necessary changes to the post.
                      Windows no longer obstructs my view.
                      Using Kubuntu Linux since March 23, 2007.
                      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                      Comment


                        #12
                        Re: Lines don't wrap in some threads

                        Originally posted by Death Kitten
                        As for Konquror, there is another issue. When I'd log in, it accepted it multiple times, only to log me back out and request I reauthenticate when I'd go try to view recent unread posts. Any ideas there?
                        Settings > Configure Konqueror... > Cookies > Management

                        Delete any 'duplicate' cookies for kubuntuforums. I discovered this myself. If more than one kubuntuforums cookie exists, it creates navigation problems in KFN. Go figure.
                        Windows no longer obstructs my view.
                        Using Kubuntu Linux since March 23, 2007.
                        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                        Comment


                          #13
                          Re: Lines don't wrap in some threads

                          Okay, in order to make it clear what I was seeing, I highlighted the text in the first codebox in the thread. You see where the highlighted parts go all the way to the right? Those are just extra spaces that were typed/pasted in within the code tag area.

                          If at the end of each of those lines, you delete everything before the line break, it will fix the problem and the thread should display as it should.

                          It just seems that konqueror is ignoring those extra spaces at the end of each line.
                          Attached Files

                          Comment


                            #14
                            Re: Lines don't wrap in some threads

                            I noticed the spaces too (after DK pointed then out ). Could it be that the OP did a cut and paste and included the spaces that way? I've seen it in lots of posts though so fixing this thread is not going to help a lot.

                            Code to discard the extra spaces seems somehow wrong though. I think the text should be rendered differently than what's in the code box, but I'm very CSS illiterate. But like DK said "notorious mess that HTML and CSS for forum software like this is typically found to be" will probably be the stumbling block, regardless of CSS literacy.

                            It's interesting that Dillo does not display the problem, considering the claimed "correctness" of that browser.

                            Comment


                              #15
                              Re: Lines don't wrap in some threads

                              Okay. I believe I've fixed that post. Please check for me and report back. Thank you.
                              Windows no longer obstructs my view.
                              Using Kubuntu Linux since March 23, 2007.
                              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                              Comment

                              Working...
                              X