in reply to posting text alignment

Why do you want to force line wrapping of text w/<br>'s here on PM? It wraps text nicely already by letting it get handled as HTML, and code is wrapped at a user-defined line length...

What's an example of a node or two where you find this useful?

couple TWTOWTDI code comments:

Replies are listed 'Best First'.
Re^2: posting text alignmen
by sh1tn (Priest) on Sep 03, 2005 at 14:18 UTC
    You are right in case that lines are over the max chars.

    without alignment:
    some text here then another paragraph and finally a long line with spaces ............. .......... ...... ... .. .

    with alignment:
    some text here
    then another paragraph
    and finally a long line with spaces ............. .......... ..... .
    ... .. .


    I guess the code should be sm.th. like:
    perl -e '$SIG{INT}=sub{print$/x2,"@__"};while(<>){s/(.{75,}?)\s|\n/$1< +br>/;push@__,$_}'

    Update: I do not guess, I am sure.


      While this could be useful at times, I think, I am confused as to what you are ultimately suggesting. Are you using <br>'s to break paragraphs? I personally use <p> to break paragraphs...

      If, on the other hand, you're suggesting to use the breaks on lines within a paragraph, and I think you are, then I completely agree with davidrw that how a paragraph wraps should be left upto the person viewing it. I have a large-ish screen, I thank you for allowing me to use the available space and set the width that I like, and not force your paragraphs to wrap sooner; unless you have good reason to do so.

      -Scott

      Update: fixed some grammer issues...